1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-22 02:57:39 +00:00

Catch more Gdrive errors (#2233)

This commit is contained in:
Ozzieisaacs
2021-12-23 11:13:08 +01:00
parent d45085215f
commit bdedec90dd
3 changed files with 10 additions and 3 deletions

View File

@@ -673,9 +673,9 @@ def save_cover(img, book_path):
def do_download_file(book, book_format, client, data, headers):
if config.config_use_google_drive:
startTime = time.time()
#startTime = time.time()
df = gd.getFileFromEbooksFolder(book.path, data.name + "." + book_format)
log.debug('%s', time.time() - startTime)
#log.debug('%s', time.time() - startTime)
if df:
return gd.do_gdrive_download(df, headers)
else: