Skip to content

Commit

Permalink
Fix if there are no stats
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-chaudhary committed Apr 27, 2021
1 parent 1565676 commit 75314e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions default/methods/report/report_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ def run(self):
return self.results

def serialize_stats(self, stats):
if stats is None: return None
result = {}
result = stats.copy()
if len(stats['labels']) > 0 and type(stats['labels'][0]) == datetime.datetime:
Expand Down

0 comments on commit 75314e0

Please sign in to comment.