mistake in error logging

pull/1/head
eric 2016-06-14 13:40:44 -04:00
parent 520dbab389
commit 2a505bc1cc
1 changed files with 1 additions and 1 deletions

View File

@ -2064,7 +2064,7 @@ class Ebook(models.Model):
return ebf.file
except IndexError:
# response has no Content-Length header probably a bad link
logging.error( 'Bad link error: {}'.format(ebook.url) )
logging.error( 'Bad link error: {}'.format(self.url) )
except IOError:
logger.error(u'could not open {}'.format(self.url) )
else: