Skip to content

Commit

Permalink
[Bugfix] Check if output value is str (#109)
Browse files Browse the repository at this point in the history
* check if output_file is a string before startswith

* bump version
  • Loading branch information
rzlim08 authored Mar 28, 2023
1 parent 72d7d23 commit bf7e1ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion miniwdl-plugins/s3upload/miniwdl_s3upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def rewriter(fd):
if isinstance(output_file, list):
for filename in output_file:
remove_temporary_flag(filename)
elif output_file and output_file.startswith("s3://"):
elif isinstance(output_file, str) and output_file.startswith("s3://"):
remove_temporary_flag(output_file)

s3cp(
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.4.4
v1.4.5

0 comments on commit bf7e1ca

Please sign in to comment.