Skip to content

Commit ba93e73

Browse files
committed
Fix: JSON Error Raise
Cannot raise a JSONDecodeError without providing all its constructor arguments. Raise an ValueError instead.
1 parent 39171dd commit ba93e73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,9 +688,9 @@ def extract_time(file):
688688
timings = json.load(open(json_file))
689689
# Check for proper format
690690
item = next(iter(timings.values()))
691-
if not isinstance(item, dict): raise JSONDecodeError()
691+
if not isinstance(item, dict): raise ValueError
692692
return timings
693-
except (OSError, JSONDecodeError, StopIteration): pass
693+
except (OSError, ValueError, JSONDecodeError, StopIteration): pass
694694

695695
valid_dirs, all_tests = self.get_run_history(check_activity=False)
696696

0 commit comments

Comments
 (0)