From b1dd1cd72a86bc1ac8ef9333292496634e106fd6 Mon Sep 17 00:00:00 2001 From: zim514 Date: Fri, 20 Jan 2023 01:34:28 -0500 Subject: [PATCH] Fix exception handling --- script.service.hue/addon.xml | 2 +- script.service.hue/resources/lib/reporting.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script.service.hue/addon.xml b/script.service.hue/addon.xml index 12165da2..86bf2d32 100644 --- a/script.service.hue/addon.xml +++ b/script.service.hue/addon.xml @@ -1,4 +1,4 @@ - + diff --git a/script.service.hue/resources/lib/reporting.py b/script.service.hue/resources/lib/reporting.py index e8bb4063..471eb0f1 100644 --- a/script.service.hue/resources/lib/reporting.py +++ b/script.service.hue/resources/lib/reporting.py @@ -18,7 +18,7 @@ def process_exception(exc, level="critical", error=""): - xbmc.log(f"[script.service.hue] Exception: {type(exc)}, {exc}, {error}, {exc.message}, {traceback.format_exc()}") + xbmc.log(f"[script.service.hue] Exception: {type(exc)}, {exc}, {error}, {traceback.format_exc()}") if type(exc) == QhueException and exc.type_id in ["3", "7"]: # 3: resource not found, 7: invalid value for parameter xbmc.log("[script.service.hue] Qhue resource not found, not reporting to rollbar")