Merge pull request #2311 from forslund/bugfix/gotta-catch-em-all

Catch all exceptions from upload device info
pull/2313/head
Åke 2019-09-17 12:07:32 +02:00 committed by GitHub
commit fa6d826244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,6 @@ directory. The executable gets added to the bin directory when installed
import time import time
from threading import Event from threading import Event
from requests import HTTPError, ConnectionError
import mycroft.lock import mycroft.lock
from msm.exceptions import MsmException from msm.exceptions import MsmException
@ -182,7 +181,7 @@ class DevicePrimer(object):
try: try:
api = DeviceApi() api = DeviceApi()
api.update_version() api.update_version()
except (HTTPError, ConnectionError): except Exception:
self._notify_backend_down() self._notify_backend_down()
def _update_system(self): def _update_system(self):