silences flake8 warning of F841:
https://www.flake8rules.com/rules/F841.html
Signed-off-by: Kefu Chai <kchai@redhat.com>
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():")
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():")