add token check for file download operation.
This commit is contained in:
parent
c2a67aa861
commit
0d8deb02d7
@ -111,6 +111,7 @@ class FilesApi(BaseApi):
|
||||
def download(self, file: File, path: str) -> bool:
|
||||
# print(self.__class__.__name__ + "::" + sys._getframe().f_code.co_name)
|
||||
url = file.download_url
|
||||
token_check(self.connection)
|
||||
response = self.connection.get(url, stream=True)
|
||||
self._raise_response_error(response)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user