From 9ffc973918fe1d91653ff8e44cd0f01653f89321 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 11 Jul 2024 14:22:49 +1000 Subject: [PATCH] Fix missing check for debug print --- scripts/modules/addon_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/modules/addon_utils.py b/scripts/modules/addon_utils.py index 765eb48131f..f94d30ae2a3 100644 --- a/scripts/modules/addon_utils.py +++ b/scripts/modules/addon_utils.py @@ -864,7 +864,8 @@ def _extension_compat_cache_create( try: bl_pkg.__time__ = os.path.getmtime(bl_pkg.__file__) except Exception as ex: - print_debug(str(ex)) + if print_debug is not None: + print_debug(str(ex)) if (error := bl_pkg.manifest_compatible_with_wheel_data_or_error( pkg_manifest_filepath,