fix control+c during -j and range tests
This commit is contained in:
@@ -542,8 +542,6 @@ class DataJob(Job):
|
||||
pass
|
||||
except Exception as exc:
|
||||
self.data.append((exc.__class__.__name__, str(exc)))
|
||||
except KeyboardInterrupt:
|
||||
raise
|
||||
except BaseException:
|
||||
pass
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ for idx, extr, url, result in tests:
|
||||
config.set(key.split("."), value)
|
||||
if "range" in result:
|
||||
config.set(("image-range",), result["range"])
|
||||
config.set(("chapter-range",), result["range"])
|
||||
|
||||
# write test data
|
||||
try:
|
||||
|
||||
@@ -62,6 +62,7 @@ class TestExtractorResults(unittest.TestCase):
|
||||
config.set(key.split("."), value)
|
||||
if "range" in result:
|
||||
config.set(("image-range",), result["range"])
|
||||
config.set(("chapter-range",), result["range"])
|
||||
content = "content" in result
|
||||
else:
|
||||
content = False
|
||||
|
||||
Reference in New Issue
Block a user