From e0222d86722899eff30345351c4219244e1a908f Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Mon, 21 Aug 2023 09:46:41 +0200 Subject: [PATCH] Fix error if asset path is not specified TypeError: object of type "NoneType" has no len() --- qgispluginci/release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qgispluginci/release.py b/qgispluginci/release.py index 1ac6f93b..202e9d86 100644 --- a/qgispluginci/release.py +++ b/qgispluginci/release.py @@ -229,7 +229,7 @@ def create_archive( # https://stackoverflow.com/a/48462950/1548052 tt.add(file) # Add assets - if len(asset_paths) > 0: + if asset_paths: with tarfile.open(top_tar_file, mode="a") as tt: for asset_path in asset_paths: tt.add(asset_path)