mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-11-01 07:43:02 +00:00 
			
		
		
		
	add fix for janeczku/calibre-web#64 kindlegen conversation error
This commit is contained in:
		| @@ -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: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 ouzklcn
					ouzklcn