Skip to content

Commit b4b4642

Browse files
authored
Merge pull request #100 from ax3l/fix-linter
Fix Linter: Test.output_dir, JSONDecodeError
2 parents 4c1753a + ba93e73 commit b4b4642

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

suite.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def __init__(self, name):
4343
self.log = None
4444

4545
self.buildDir = ""
46+
self.output_dir = ""
4647

4748
self.extra_build_dir = ""
4849

@@ -688,9 +689,9 @@ def extract_time(file):
688689
timings = json.load(open(json_file))
689690
# Check for proper format
690691
item = next(iter(timings.values()))
691-
if not isinstance(item, dict): raise JSONDecodeError()
692+
if not isinstance(item, dict): raise ValueError
692693
return timings
693-
except (OSError, JSONDecodeError, StopIteration): pass
694+
except (OSError, ValueError, JSONDecodeError, StopIteration): pass
694695

695696
valid_dirs, all_tests = self.get_run_history(check_activity=False)
696697

0 commit comments

Comments
 (0)