Fix meteoalarm exception handling with instance of KeyError (#34828)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2020-04-28 22:23:54 -07:00
1 parent bdbeb1d68f
commit d634ed0bbb
1 file changed
+1 -1
@@ -42,7 +42,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
try:
api = Meteoalert(country, province, language)
except KeyError():
except KeyError:
_LOGGER.error("Wrong country digits or province name")
return