Skip to content

Commit

Permalink
Fix static code analysis complains
Browse files Browse the repository at this point in the history
  • Loading branch information
dj3mu committed Mar 9, 2023
1 parent c4c5f29 commit 32028aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/helpermodules/scale_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from typing import Union


def scale_metric(value: Union[float, int], metric: str, base_metric: str):

# If no unit or too short unit or the base unit is not matching, return the unmodified value
Expand Down Expand Up @@ -33,4 +34,4 @@ def scale_metric(value: Union[float, int], metric: str, base_metric: str):
elif scale == 'P':
return value * 1e15

raise Exception("unknown scale <%s> in <%s>" % (scale, unit))
raise Exception("unknown scale <%s> in <%s>" % (scale, metric))

0 comments on commit 32028aa

Please sign in to comment.