Commit 7f033e9f authored by Jan B's avatar Jan B Committed by GitHub

Merge pull request #65 from ouzklcn/master

add fix for #64 kindlegen conversation error
parents 966fd595 cd88af32
...@@ -103,6 +103,8 @@ def send_mail(book_id, kindle_mail): ...@@ -103,6 +103,8 @@ def send_mail(book_id, kindle_mail):
filepath = make_mobi(book.id) filepath = make_mobi(book.id)
if filepath is not None: if filepath is not None:
msg.attach(get_attachment(filepath)) msg.attach(get_attachment(filepath))
elif filepath is None:
return "Could not convert epub to mobi"
elif 'pdf' in formats: elif 'pdf' in formats:
msg.attach(get_attachment(formats['pdf'])) msg.attach(get_attachment(formats['pdf']))
elif 'pdf' in formats: elif 'pdf' in formats:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment