Skip to content

Commit

Permalink
Silencing errors for saving useless logs
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogeniola committed Feb 23, 2020
1 parent 67a11f1 commit 90bc55a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions custom_components/meross_cloud/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ def wrapper_decorator(*args, **kwargs):
return value
except CommandTimeoutException:
_LOGGER.debug("Exception info")
_LOGGER.error("A timeout exception occurred while executing function %s " % str(func))
instance.notify_error()

if not instance._error:
_LOGGER.error("A timeout exception occurred while executing function %s " % str(func))
instance.notify_error()

return wrapper_decorator

Expand Down

0 comments on commit 90bc55a

Please sign in to comment.