Skip to content

Commit b5ad619

Browse files
authored
Fix example (#429)
1 parent 8171922 commit b5ad619

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

example.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from aiohttp import ClientError, ClientSession
77

8-
from gios import ApiError, Gios, InvalidSensorsData, NoStationError
8+
from gios import ApiError, Gios, InvalidSensorsDataError, NoStationError
99

1010
GIOS_STATION_ID = 568
1111

@@ -18,7 +18,12 @@ async def main() -> None:
1818
gios = Gios(GIOS_STATION_ID, websession)
1919
try:
2020
data = await gios.async_update()
21-
except (ApiError, NoStationError, InvalidSensorsData, ClientError) as error:
21+
except (
22+
ApiError,
23+
NoStationError,
24+
InvalidSensorsDataError,
25+
ClientError,
26+
) as error:
2227
print(error)
2328
return
2429

0 commit comments

Comments
 (0)