Skip to content

Commit b9bd757

Browse files
authored
Fix meteoalarm exception handling with instance of KeyError (#34828)
1 parent 5825cd7 commit b9bd757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

homeassistant/components/meteoalarm/binary_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
4242

4343
try:
4444
api = Meteoalert(country, province, language)
45-
except KeyError():
45+
except KeyError:
4646
_LOGGER.error("Wrong country digits or province name")
4747
return
4848

0 commit comments

Comments
 (0)