From 1a6107d025546b20163bb11dd26d17cbfdfac898 Mon Sep 17 00:00:00 2001 From: eric Date: Mon, 10 Jun 2013 11:12:54 -0400 Subject: [PATCH] this is how you log an exception --- frontend/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/views.py b/frontend/views.py index efeab82d..e2ee03ac 100755 --- a/frontend/views.py +++ b/frontend/views.py @@ -2530,7 +2530,7 @@ def send_to_kindle(request, kindle_ebook_id, javascript='0'): email.attach(title + '.' + ebook.format, filehandle.read()) email.send() except: - logger.warning('Unexpected error:', sys.exc_info()[1]) + logger.warning('Unexpected error: %s', sys.exc_info()) return local_response(request, javascript, 1) request.session['next_page'] = reverse('work', args=(ebook.edition.work.id,))