Merge branch 'simpler_download' of github.com:Gluejar/regluit into simpler_download

pull/1/head
Andromeda Yelton 2013-06-10 11:58:03 -04:00
commit 704fdc5b60
1 changed files with 1 additions and 1 deletions

View File

@ -2537,7 +2537,7 @@ def send_to_kindle(request, kindle_ebook_id, javascript='0'):
email.attach(title + '.' + ebook.format, filehandle.read()) email.attach(title + '.' + ebook.format, filehandle.read())
email.send() email.send()
except: except:
logger.warning('Unexpected error: %s' % sys.exc_info()[1]) logger.warning('Unexpected error: %s', sys.exc_info())
return local_response(request, javascript, 1) return local_response(request, javascript, 1)
if request.POST.has_key('kindle_email') and not request.user.is_authenticated(): if request.POST.has_key('kindle_email') and not request.user.is_authenticated():