1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-08-31 09:57:56 +00:00

Merge pull request #65 from ouzklcn/master

add fix for #64 kindlegen conversation error
This commit is contained in:
Jan B
2016-10-02 20:33:35 +02:00
committed by GitHub

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: