Skip to content

Commit

Permalink
Add noqa to lines triggering undefined name
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Sep 18, 2024
1 parent 4c83146 commit 371fa36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/nav/metrics/carbon.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ def _reset_warning_registry():
except NameError:
pass
else:
for key in __warningregistry__.keys():
for key in __warningregistry__.keys(): # noqa
_, cls, _ = key
if cls is CarbonWarning:
del __warningregistry__[key]
del __warningregistry__[key] # noqa


def send_metrics(metric_tuples):
Expand Down

0 comments on commit 371fa36

Please sign in to comment.