Skip to content

Commit bb879c8

Browse files
committed
Change exception type
1 parent bb2cbab commit bb879c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testgen/generators/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def readFile(self, filename, version="", filetype="txt"):
135135
try:
136136
with open(path, "r", encoding="utf-8") as testdata:
137137
return json.load(testdata) if filetype == "json" else testdata.read()
138-
except BaseException as err:
138+
except Exception as err:
139139
logging.warning("** readFile: %s", err)
140140
return None
141141

0 commit comments

Comments
 (0)