Skip to content

Commit

Permalink
fix: update error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
milovate committed Dec 20, 2024
1 parent 7032cb2 commit cc67f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daras_ai_v2/gdrive_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def gdrive_download(f: furl, mime_type: str, export_links: dict) -> tuple[bytes,
if f_url_export := export_links.get(export_mime_type, None):
r = requests.get(f_url_export)
file_bytes = r.content
raise_for_status(r)
raise_for_status(r, is_user_url=True)
return file_bytes, export_mime_type

request = service.files().get_media(
Expand Down

0 comments on commit cc67f67

Please sign in to comment.