From 0d8deb02d77fdb2de25f45b4ec1cdfab25b852ba Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Mon, 8 Jul 2024 18:07:26 +0900 Subject: [PATCH] add token check for file download operation. --- mdrsclient/api/files.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mdrsclient/api/files.py b/mdrsclient/api/files.py index 774d594..05e0456 100644 --- a/mdrsclient/api/files.py +++ b/mdrsclient/api/files.py @@ -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: