Pylint 2 fixes (#15487)
* pylint 2 inline disable syntax fixes * pylint 2 logging-not-lazy fixes * pylint 2 consider-using-in fixes * Revert pylint 2 inline disable syntax fixes addressing unused-imports Will have a go at removing more unused imports altogether first.
This commit is contained in:
parent
d2f4bce6c0
commit
e31dd4404e
33 changed files with 55 additions and 73 deletions
|
@ -192,7 +192,7 @@ class QNAPStatsAPI(object):
|
|||
self.data["smart_drive_health"] = self._api.get_smart_disk_health()
|
||||
self.data["volumes"] = self._api.get_volumes()
|
||||
self.data["bandwidth"] = self._api.get_bandwidth()
|
||||
except: # noqa: E722 # pylint: disable=bare-except
|
||||
except: # noqa: E722 pylint: disable=bare-except
|
||||
_LOGGER.exception("Failed to fetch QNAP stats from the NAS")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue