Skip to content

Commit

Permalink
Update server.py only to boolean True
Browse files Browse the repository at this point in the history
  • Loading branch information
bornagain1981 committed Sep 8, 2023
1 parent ea2390b commit c7d630c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trollmoves/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,7 @@ def unpack(pathname,
LOGGER.exception("Could not decompress %s", pathname)
else:
if delete in ["1", "yes", "true", "on"]:
delete = True

Check warning on line 949 in trollmoves/server.py

View check run for this annotation

Codecov / codecov/patch

trollmoves/server.py#L948-L949

Added lines #L948 - L949 were not covered by tests
os.remove(pathname)
return new_path
return pathname
Expand Down

0 comments on commit c7d630c

Please sign in to comment.