Merge branch 'simpler_download' of github.com:Gluejar/regluit into simpler_download
commit
704fdc5b60
|
@ -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():
|
||||||
|
|
Loading…
Reference in New Issue