mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
ebook-convert: Abort if a keyboard interrupt is raised during parsing
This commit is contained in:
parent
d244201457
commit
08f5775f65
@ -163,6 +163,8 @@ class OEBReader(object):
|
|||||||
if item.media_type in check:
|
if item.media_type in check:
|
||||||
try:
|
try:
|
||||||
item.data
|
item.data
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
raise
|
||||||
except:
|
except:
|
||||||
self.logger.exception('Failed to parse content in %s'%
|
self.logger.exception('Failed to parse content in %s'%
|
||||||
item.href)
|
item.href)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user