6996ad3541
* Wrap connection attempt by try/except block so an individual downed doorbird does not fail the whole platform * Fixed lint warning * Disable too-broad-exception pylint warning since the whole point of this is to catch all exceptions and log them while letting processing continue; I don't disable a lint warning lightly, but this is the entire intent of this PR. * Fixed name of pylint warning to broad-except * Use _LOGGER.exception to get the stack trace too, per PEP8 recommendation for a bare Exception being caught. * per @balloob, switch to just catching OSError on a narrow block; I'm not sure this protects all problems with Doorbird device startup, but it protects against the primary one I experience. |
||
---|---|---|
.. | ||
__init__.py | ||
camera.py | ||
manifest.json | ||
switch.py |