We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8248493 commit 9a91109Copy full SHA for 9a91109
dashboards/component/stat/serializers.py
@@ -30,7 +30,7 @@ def __post_init__(self):
30
else:
31
try:
32
self.change = (self.value - self.previous) / self.previous * 100
33
- except: # noqa
+ except (TypeError, ZeroDivisionError):
34
self.change = None
35
36
0 commit comments