add fix for janeczku/calibre-web#64 kindlegen conversation error

This commit is contained in:
ouzklcn 2016-09-21 11:27:37 +03:00
parent 966fd5952b
commit cd88af32f2
1 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,8 @@ def send_mail(book_id, kindle_mail):
filepath = make_mobi(book.id)
if filepath is not None:
msg.attach(get_attachment(filepath))
elif filepath is None:
return "Could not convert epub to mobi"
elif 'pdf' in formats:
msg.attach(get_attachment(formats['pdf']))
elif 'pdf' in formats: