Skip to content

Commit

Permalink
addressing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abogaard committed Nov 29, 2023
1 parent d9e762b commit 621ef9d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ring_doorbell/other.py
Expand Up @@ -15,14 +15,14 @@
INTERCOM_OPEN_ENDPOINT,
MIC_VOL_MAX,
MIC_VOL_MIN,
MSG_GENERIC_FAIL,
MSG_VOL_OUTBOUND,
OTHER_DOORBELL_VOL_MAX,
OTHER_DOORBELL_VOL_MIN,
SETTINGS_ENDPOINT,
VOICE_VOL_MAX,
VOICE_VOL_MIN,
)
from ring_doorbell.exceptions import RingError
from ring_doorbell.generic import RingGeneric

_LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -212,9 +212,8 @@ def clip_length_max(self, value):
self._ring.query(url, method="PATCH", json=payload)
self._ring.update_devices()
return True
except Exception as E:
_LOGGER.error("%s", "{}: {}".format(MSG_GENERIC_FAIL, E))
return False
except Exception as ex:
raise RingError(f"Unknown error during query of url {url}: {ex}") from ex

@property
def connection_status(self):
Expand Down

0 comments on commit 621ef9d

Please sign in to comment.