handle api not responding

This commit is contained in:
Florian Bezannier
2021-04-28 21:20:58 +02:00
parent 9225dc471c
commit 3b2aba44cf
+1 -1
View File
@@ -177,7 +177,7 @@ class Database:
sleep(1) # API is limited to 1 call by sec
else:
break
except (ValueError, KeyError):
except (ValueError, KeyError, requests.exceptions.RequestException):
logger.error("Can't get altitude from API")
logger.debug(traceback.format_exc())