From 5631391245113e6b5e4962fd5985f23af1898ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Sun, 31 May 2015 09:36:20 +0200 Subject: [PATCH] Error handling tweak --- kcc/comic2ebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index fa6c49f..f6d5bee 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -608,7 +608,7 @@ def getWorkFolder(afile): raise UserWarning("Failed to extract file.") else: rmtree(workdir, True) - raise TypeError + raise TypeError("Failed to detect archive format.") if len(os.path.join(path, 'OEBPS', 'Images')) > 240: raise UserWarning("Path is too long.") move(path, path + "_temp")