From d38bc90e827739f9ab5cdb5c9910f46992d34a3e Mon Sep 17 00:00:00 2001 From: lzzy12 Date: Mon, 14 Oct 2019 20:51:34 +0530 Subject: [PATCH] Don't do anything on KillThreadException until we figure a better way Signed-off-by: lzzy12 --- bot/helper/mirror_utils/gdriveTools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/helper/mirror_utils/gdriveTools.py b/bot/helper/mirror_utils/gdriveTools.py index ce77cf4..b96a75d 100644 --- a/bot/helper/mirror_utils/gdriveTools.py +++ b/bot/helper/mirror_utils/gdriveTools.py @@ -65,7 +65,9 @@ class GoogleDriveHelper: self.__listener.onUploadProgress(_list, index) except KillThreadException as e: LOGGER.info(f'Stopped calling onDownloadProgress(): {str(e)}') - self._should_update = False + # TODO: Find a way to know if the Error is actually about message not found and not found + # self._should_update = False + pass else: LOGGER.info('status: None') time.sleep(DOWNLOAD_STATUS_UPDATE_INTERVAL) @@ -94,7 +96,6 @@ class GoogleDriveHelper: # Insert a file drive_file = self.__service.files().create(body=file_metadata, media_body=media_body) response = None - file_start_time = time.time() while response is None: if self.is_cancelled: return None