Skip to content

Commit

Permalink
removed duplicate logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jsl12 committed Jan 19, 2025
1 parent cc1df3e commit c31adfc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions appdaemon/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,10 @@ def wrapper(self, *args, timeout: int | float | None = None, **kwargs):
return task
else:
return run_coroutine_threadsafe(self, coro, timeout=timeout)
except Exception as e:
ad.threading.logger.error(f"Error running coroutine threadsafe: {e}")
ad.threading.logger.error(format_exception(e))
except Exception:
# except Exception as e:
# ad.threading.logger.error(f"Error running coroutine threadsafe: {e}")
# ad.threading.logger.error(format_exception(e))
raise

return wrapper
Expand Down

0 comments on commit c31adfc

Please sign in to comment.