Skip to content

Commit

Permalink
Purposefully disable pylint violation
Browse files Browse the repository at this point in the history
This was old, but surfaced as a linter error in the CI only now because
the jobs.py file was changed.
  • Loading branch information
lunkwill42 committed Feb 22, 2022
1 parent 93cbfaa commit e358b30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/nav/ipdevpoll/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ def _get_willing_plugins(self, plugin_classes):
can_handle = yield defer.maybeDeferred(cls.can_handle, self.netbox)
except db.ResetDBConnectionError:
raise
# We very intentionally log and ignore unhandled exception here, to ensure
# the stability of the ipdevpoll daemon
# pylint: disable = broad-except
except Exception:
self._logger.exception("Unhandled exception from can_handle(): %r", cls)
can_handle = False
Expand Down

0 comments on commit e358b30

Please sign in to comment.