From 16c16baac1499d7aa0239b6941600c52eac4229a Mon Sep 17 00:00:00 2001 From: stefan6419846 <96178532+stefan6419846@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:08:53 +0200 Subject: [PATCH] fix environment variable check --- license_tools/utils/archive_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/license_tools/utils/archive_utils.py b/license_tools/utils/archive_utils.py index cf0660b..c4754ad 100644 --- a/license_tools/utils/archive_utils.py +++ b/license_tools/utils/archive_utils.py @@ -26,7 +26,7 @@ # without the fix (at least when not already using UTC as the timezone anyway). # As far as I could test it, this does not seem to have any relevant # downsides for license retrieval. -if os.getenv("LICENSE_TOOLS_DISABLE_TZ_WORKAROUND").lower() == "true": # pragma: no cover +if os.getenv("LICENSE_TOOLS_DISABLE_TZ_WORKAROUND", "").lower() == "true": # pragma: no cover extractcode.libarchive2.set_env_with_tz = lambda: None