From 2a505bc1cc7210056fc67587742646ebc1752b1e Mon Sep 17 00:00:00 2001 From: eric Date: Tue, 14 Jun 2016 13:40:44 -0400 Subject: [PATCH] mistake in error logging --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index 5fb936df..8ba00913 100755 --- a/core/models.py +++ b/core/models.py @@ -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: