Cleanup: quiet pylint warnings using BaseException

This commit is contained in:
Campbell Barton
2023-07-30 16:14:11 +10:00
parent fd0977284b
commit 9f5be2a861
9 changed files with 28 additions and 27 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ def _fake_module(mod_name, mod_path, speedy=True, force_support=None):
try:
ast_data = ast.parse(data, filename=mod_path)
except:
except BaseException:
print("Syntax error 'ast.parse' can't read:", repr(mod_path))
import traceback
traceback.print_exc()