mirror of
https://github.com/ceph/ceph
synced 2025-02-19 00:47:49 +00:00
mgr/zabbix: do not catch exception with name
silences flake8 warning of F841: https://www.flake8rules.com/rules/F841.html Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
5cf5540250
commit
573c53a25d
@ -459,7 +459,7 @@ class Module(MgrModule):
|
||||
if discovery_counter == discovery_interval:
|
||||
try:
|
||||
self.discovery()
|
||||
except Exception as exc:
|
||||
except Exception:
|
||||
# Shouldn't happen, but let's log it and retry next interval,
|
||||
# rather than dying completely.
|
||||
self.log.exception("Unexpected error during discovery():")
|
||||
@ -469,7 +469,7 @@ class Module(MgrModule):
|
||||
try:
|
||||
data = self.get_data()
|
||||
self.send(data)
|
||||
except Exception as exc:
|
||||
except Exception:
|
||||
# Shouldn't happen, but let's log it and retry next interval,
|
||||
# rather than dying completely.
|
||||
self.log.exception("Unexpected error during send():")
|
||||
|
Loading…
Reference in New Issue
Block a user