Skip to content

Commit

Permalink
Fix exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
zim514 committed Jan 20, 2023
1 parent 5171f03 commit b1dd1cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script.service.hue/addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="script.service.hue" name="Hue Service" provider-name="zim514" version="1.4.1">
<addon id="script.service.hue" name="Hue Service" provider-name="zim514" version="1.4.2">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.requests" version="2.27.1"/>
Expand Down
2 changes: 1 addition & 1 deletion script.service.hue/resources/lib/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b1dd1cd

Please sign in to comment.