Fix misleading message when processing empty directories

This commit is contained in:
Mateusz
2013-06-27 23:40:30 +02:00
parent 118cf25ff7
commit 7005c9e40a
2 changed files with 9 additions and 2 deletions
+4
View File
@@ -136,6 +136,10 @@ class WorkerThread(QtCore.QThread):
try:
outputPath = comic2ebook.main(jobargv, self)
self.emit(QtCore.SIGNAL("hideProgressBar"))
except UserWarning as warn:
self.errors = True
self.emit(QtCore.SIGNAL("addMessage"), 'KCC failed to create output file!', 'warning')
self.emit(QtCore.SIGNAL("addMessage"), str(warn), 'warning')
except Exception as err:
self.errors = True
type_, value_, traceback_ = sys.exc_info()