Skip to content

Commit

Permalink
improve error handling in downloader helper app
Browse files Browse the repository at this point in the history
  • Loading branch information
lunamidori5 committed Feb 13, 2025
1 parent f19e885 commit 0daaf3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Webserver/Programs/Downloader/helper_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ async def acquire_files_with_streaming(FILES):
return content

except requests.exceptions.RequestException as e:
raise RuntimeError(f"Download failed: {e}")
raise RuntimeError(f"Download failed: {str(e)}")
except Exception as e:
raise RuntimeError(f"An error occurred: {e}")
raise RuntimeError(f"An error occurred: {str(e)}")

def log(message):
print(message)
Expand Down

0 comments on commit 0daaf3c

Please sign in to comment.