fix loader logging

pull/94/head
eric 2020-10-09 15:47:49 -04:00
parent 6e75595714
commit 0a17b15615
1 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,10 @@ def load_ebookfile(url, format, user_agent=settings.USER_AGENT, method='GET'):
logger.error('bad certificate? for %s', url)
return None, ''
except IOError as e:
logger.error('could not open %', url)
logger.error('could not open %s', url)
return None, ''
except UnicodeDecodeError as e:
logger.error('decoding error for %s', url)
return None, ''
if response.status_code == 200: