Skip to content

Commit

Permalink
return rmtree remove result
Browse files Browse the repository at this point in the history
  • Loading branch information
emilsvennesson committed Oct 5, 2024
1 parent 8a3bdd9 commit 4bbbae9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/inputstreamhelper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,10 @@ def remove_tree(path):

try:
rmtree(compat_path(path))
return True
except FileNotFoundError as e:
log(4, f'Error removing tree: {e}')
log(4, f"Error removing tree: {e}")
return False


def parse_version(vstring):
Expand Down

0 comments on commit 4bbbae9

Please sign in to comment.