Skip to content

Commit

Permalink
hot fix: don't pass object lifecycle preference as positional
Browse files Browse the repository at this point in the history
  • Loading branch information
isidentical committed Feb 18, 2025
1 parent 46fde2c commit 2cbf7ac
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 2cbf7ac

Please sign in to comment.