This commit is contained in:
sunxiaojia123 2024-11-15 16:31:52 +08:00 committed by GitHub
commit 73dd445208
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -176,7 +176,7 @@ def _get_file_extract_string_func(*, key: str) -> Callable[[File], str]:
case "transfer_method":
return lambda x: x.transfer_method
case "url":
return lambda x: x.remote_url or ""
return lambda x: x.generate_url() or ""
case _:
raise InvalidKeyError(f"Invalid key: {key}")