Skip to content

Commit

Permalink
Merge branch 'main' into matteo/requests-table
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 authored Feb 18, 2025
2 parents 9a99e73 + 2cbf7ac commit a4c83b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/fal/src/fal/toolkit/file/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,12 @@ def from_bytes(
object_lifecycle_preference = (
request_lifecycle_preference(request) or LIFECYCLE_PREFERENCE.get()
)
save_kwargs.setdefault(
"object_lifecycle_preference", object_lifecycle_preference
)

try:
url = repo.save(fdata, object_lifecycle_preference, **save_kwargs)
url = repo.save(fdata, **save_kwargs)
except Exception:
if not fallback_repository:
raise
Expand Down

0 comments on commit a4c83b7

Please sign in to comment.