diff options
Diffstat (limited to 'tests/python/bl_load_py_modules.py')
-rw-r--r-- | tests/python/bl_load_py_modules.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/python/bl_load_py_modules.py b/tests/python/bl_load_py_modules.py index 437a425a36d..be7f426d993 100644 --- a/tests/python/bl_load_py_modules.py +++ b/tests/python/bl_load_py_modules.py @@ -104,7 +104,7 @@ def source_list(path, filename_check=None): def load_addons(): modules = addon_modules_sorted() - addons = bpy.context.user_preferences.addons + addons = bpy.context.preferences.addons # first disable all for mod_name in list(addons.keys()): @@ -197,7 +197,7 @@ def load_modules(): assert(os.path.samefile(mod_imp.__file__, submod_full)) modules.append(mod_imp) - except Exception as e: + except Exception: import traceback # Module might fail to import, but we don't want whole test to fail here. # Reasoning: |