Don't do anything on KillThreadException until we figure a better way
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
This commit is contained in:
parent
6ce2507c36
commit
d38bc90e82
|
|
@ -65,7 +65,9 @@ class GoogleDriveHelper:
|
||||||
self.__listener.onUploadProgress(_list, index)
|
self.__listener.onUploadProgress(_list, index)
|
||||||
except KillThreadException as e:
|
except KillThreadException as e:
|
||||||
LOGGER.info(f'Stopped calling onDownloadProgress(): {str(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:
|
else:
|
||||||
LOGGER.info('status: None')
|
LOGGER.info('status: None')
|
||||||
time.sleep(DOWNLOAD_STATUS_UPDATE_INTERVAL)
|
time.sleep(DOWNLOAD_STATUS_UPDATE_INTERVAL)
|
||||||
|
|
@ -94,7 +96,6 @@ class GoogleDriveHelper:
|
||||||
# Insert a file
|
# Insert a file
|
||||||
drive_file = self.__service.files().create(body=file_metadata, media_body=media_body)
|
drive_file = self.__service.files().create(body=file_metadata, media_body=media_body)
|
||||||
response = None
|
response = None
|
||||||
file_start_time = time.time()
|
|
||||||
while response is None:
|
while response is None:
|
||||||
if self.is_cancelled:
|
if self.is_cancelled:
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue