Skip to content

Commit

Permalink
wget: remove log before throwing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng committed Nov 13, 2024
1 parent 5c8d025 commit b772258
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lisa/base_tools/wget.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def get(
if matched_result:
download_file_path = matched_result.group("path")
else:
self.node.tools[Rm].remove_file(log_file, sudo=sudo)
raise LisaException(
f"cannot find file path in stdout of '{command}', it may be caused "
" due to failed download or pattern mismatch."
Expand Down

0 comments on commit b772258

Please sign in to comment.