Cleanup: replace implicit BaseException with Exception

Exception is more appropriate as a general exception in these cases.
This commit is contained in:
Campbell Barton
2024-10-08 09:41:51 +11:00
parent e7e477f2b3
commit 1a1e75c253
10 changed files with 23 additions and 23 deletions

View File

@@ -166,7 +166,7 @@ def _fake_module(mod_name, mod_path, speedy=True):
mod.bl_info = ast.literal_eval(body.value)
mod.__file__ = mod_path
mod.__time__ = os.path.getmtime(mod_path)
except:
except Exception:
print("AST error parsing bl_info for:", repr(mod_path))
import traceback
traceback.print_exc()