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 Aug 27, 2024
1 parent 9b3a29b commit e494181
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 e494181

Please sign in to comment.