Skip to content

Commit

Permalink
Fix error if asset path is not specified (#239)
Browse files Browse the repository at this point in the history
```
TypeError: object of type "NoneType" has no len()
```
  • Loading branch information
m-kuhn authored Aug 21, 2023
2 parents d251d2e + e0222d8 commit 829ef55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qgispluginci/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 829ef55

Please sign in to comment.