From 6a089556db88cdf12e4e065923cd8f224bdadbde Mon Sep 17 00:00:00 2001 From: Tomaae <23486452+tomaae@users.noreply.github.com> Date: Thu, 11 Aug 2022 14:57:29 +0200 Subject: [PATCH] Improved error message when release notes fetch fails #229 --- custom_components/mikrotik_router/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/mikrotik_router/update.py b/custom_components/mikrotik_router/update.py index 9c08418..1b5ac80 100644 --- a/custom_components/mikrotik_router/update.py +++ b/custom_components/mikrotik_router/update.py @@ -97,8 +97,8 @@ class MikrotikUpdate(MikrotikEntity, UpdateEntity): if response.status_code == 200: return response.text.replace(chr(10), "
") - 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"