diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-10 09:39:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-10 09:39:52 +0300 |
commit | 92a1b3f75068b270a3061f1f3ff03cbdfecca7d8 (patch) | |
tree | 6f0f519124ca7c4935caaef7854e9855cb450fb7 | |
parent | 976b07056d3e7321c9494fab3f1a1a4ea0cde92c (diff) |
Fix T80650: Malformed bl_info header causes empty add-on listing
-rw-r--r-- | release/scripts/modules/addon_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py index 6fd091cefc2..83bed69d8d2 100644 --- a/release/scripts/modules/addon_utils.py +++ b/release/scripts/modules/addon_utils.py @@ -138,10 +138,10 @@ def modules_refresh(module_cache=addons_fake_modules): mod.__file__ = mod_path mod.__time__ = os.path.getmtime(mod_path) except: - print("AST error parsing bl_info for:", mod_name) + print("AST error parsing bl_info for:", repr(mod_path)) import traceback traceback.print_exc() - raise + return None if force_support is not None: mod.bl_info["support"] = force_support |