Parcourir la source

fix: allow fallback to remote_url when url is not provided (#12455)

tags/1.0.0-beta.1
Hiroshi Fujita il y a 9 mois
Parent
révision
4295cefeb1
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      api/factories/file_factory.py

+ 1
- 1
api/factories/file_factory.py Voir le fichier

@@ -158,7 +158,7 @@ def _build_from_remote_url(
tenant_id: str,
transfer_method: FileTransferMethod,
) -> File:
url = mapping.get("url")
url = mapping.get("url") or mapping.get("remote_url")
if not url:
raise ValueError("Invalid file url")


Chargement…
Annuler
Enregistrer