Fix T80650: Malformed bl_info header causes empty add-on listing

This commit is contained in:
Campbell Barton 2020-09-10 16:39:52 +10:00
parent 976b07056d
commit 92a1b3f750
Notes: blender-bot 2023-02-13 21:12:24 +01:00
Referenced by issue #80650, Addon section becomes blanc after failed add-on install attempt
1 changed files with 2 additions and 2 deletions

View File

@ -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