mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 09:46:25 +00:00
Make GUI error reporting more useful
This commit is contained in:
@@ -31,6 +31,7 @@ from subprocess import call
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import stat
|
import stat
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
|
||||||
class MainWindow:
|
class MainWindow:
|
||||||
@@ -151,8 +152,10 @@ class MainWindow:
|
|||||||
try:
|
try:
|
||||||
subargv.append(entry)
|
subargv.append(entry)
|
||||||
epub_path = comic2ebook.main(subargv)
|
epub_path = comic2ebook.main(subargv)
|
||||||
except Exception, err:
|
except Exception as err:
|
||||||
tkMessageBox.showerror('Error comic2ebook', "Error on file %s:\n%s" % (subargv[-1], str(err)))
|
type_, value_, traceback_ = sys.exc_info()
|
||||||
|
tkMessageBox.showerror('KCC Error', "Error on file %s:\n%s\nTraceback:\n%s" %
|
||||||
|
(subargv[-1], str(err), traceback.format_tb(traceback_)))
|
||||||
errors = True
|
errors = True
|
||||||
continue
|
continue
|
||||||
if self.options['epub_only'] == 1:
|
if self.options['epub_only'] == 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user