From 61bb4e783b3acc62b121a228f6b14c2462e23315 Mon Sep 17 00:00:00 2001 From: Leonardo Lazzaro Date: Thu, 18 Aug 2022 20:23:15 +0200 Subject: lint: enable E722 do not use bare except --- test/util/test_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/util') diff --git a/test/util/test_runner.py b/test/util/test_runner.py index 03db05c563..83308f3408 100755 --- a/test/util/test_runner.py +++ b/test/util/test_runner.py @@ -54,7 +54,7 @@ def bctester(testDir, input_basename, buildenv): try: bctest(testDir, testObj, buildenv) logging.info("PASSED: " + testObj["description"]) - except: + except Exception: logging.info("FAILED: " + testObj["description"]) failed_testcases.append(testObj["description"]) @@ -96,7 +96,7 @@ def bctest(testDir, testObj, buildenv): try: with open(os.path.join(testDir, outputFn), encoding="utf8") as f: outputData = f.read() - except: + except Exception: logging.error("Output file " + outputFn + " cannot be opened") raise if not outputData: -- cgit v1.2.3