Skip to content

Commit

Permalink
[Units] Raise RuntimeError in get_timezone_data function
Browse files Browse the repository at this point in the history
Raise RuntimeError instead of custom UnitOutputError exception in get_timezone_data function
  • Loading branch information
Harmon758 committed Jul 25, 2023
1 parent 11c16f3 commit 0f951af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions units/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import aiohttp

from .errors import UnitExecutionError, UnitOutputError
from .errors import UnitExecutionError


async def get_geocode_data(
Expand Down Expand Up @@ -67,7 +67,7 @@ async def get_timezone_data(
error_message = timezone_data.get(
"errorMessage", timezone_data["status"]
)
raise UnitOutputError(f"Error: {error_message}")
raise RuntimeError(f"Error: {error_message}")

return timezone_data

Expand Down

0 comments on commit 0f951af

Please sign in to comment.