Improved error message when release notes fetch fails #229

This commit is contained in:
Tomaae 2022-08-11 14:57:29 +02:00
parent 4da561f515
commit 6a089556db
No known key found for this signature in database
GPG key ID: 8360BBD8A381D1C0

View file

@ -97,8 +97,8 @@ class MikrotikUpdate(MikrotikEntity, UpdateEntity):
if response.status_code == 200:
return response.text.replace(chr(10), "<br />")
except:
_LOGGER.warning("Mikrotik %s failed to download release notes", self._host)
except Exception as e:
_LOGGER.warning("Failed to download release notes (%s)", e)
return "Failed to download release notes"