mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 15:23:02 +00:00 
			
		
		
		
	Fix for #3037 (catch OError on detect epub layout)
This commit is contained in:
		| @@ -54,7 +54,7 @@ def get_epub_layout(book, book_data): | |||||||
|         p = tree.xpath('/pkg:package/pkg:metadata', namespaces=default_ns)[0] |         p = tree.xpath('/pkg:package/pkg:metadata', namespaces=default_ns)[0] | ||||||
|  |  | ||||||
|         layout = p.xpath('pkg:meta[@property="rendition:layout"]/text()', namespaces=default_ns) |         layout = p.xpath('pkg:meta[@property="rendition:layout"]/text()', namespaces=default_ns) | ||||||
|     except (etree.XMLSyntaxError, KeyError, IndexError) as e: |     except (etree.XMLSyntaxError, KeyError, IndexError, OSError) as e: | ||||||
|         log.error("Could not parse epub metadata of book {} during kobo sync: {}".format(book.id, e)) |         log.error("Could not parse epub metadata of book {} during kobo sync: {}".format(book.id, e)) | ||||||
|         layout = [] |         layout = [] | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ozzie Isaacs
					Ozzie Isaacs