Enable Ruff TRY201 (#114269)
* Enable Ruff TRY201 * remove redundant rules
This commit is contained in:
parent
071c3abb69
commit
f7b7f74d10
36 changed files with 71 additions and 66 deletions
|
@ -344,7 +344,7 @@ class ONVIFDevice:
|
|||
mac = interface.Info.HwAddress
|
||||
except Fault as fault:
|
||||
if "not implemented" not in fault.message:
|
||||
raise fault
|
||||
raise
|
||||
|
||||
LOGGER.debug(
|
||||
"Couldn't get network interfaces from ONVIF device '%s'. Error: %s",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue