fix the error of unable to retrieve url from file
This commit is contained in:
parent
6529240da6
commit
f30344fe23
@ -31,7 +31,7 @@ def get_attr(*, file: File, attr: FileAttribute):
|
||||
case FileAttribute.TRANSFER_METHOD:
|
||||
return file.transfer_method.value
|
||||
case FileAttribute.URL:
|
||||
return file.remote_url
|
||||
return _to_url(file)
|
||||
case FileAttribute.EXTENSION:
|
||||
return file.extension
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user