1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-27 23:47:41 +00:00

Error handling tweak

This commit is contained in:
Paweł Jastrzębski
2015-05-31 09:36:20 +02:00
parent c33887b7b7
commit 5631391245

View File

@@ -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")