1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 17:56:30 +00:00

Windows: Truncated tracebacks

This commit is contained in:
Paweł Jastrzębski
2014-02-01 14:56:41 +01:00
parent 634213f380
commit 9f2ac7a176
2 changed files with 3 additions and 2 deletions

View File

@@ -450,9 +450,9 @@ class WorkerThread(QtCore.QThread):
except Exception as err:
GUI.progress.content = ''
self.errors = True
type_, value_, traceback_ = sys.exc_info()
_, _, traceback = sys.exc_info()
MW.showDialog.emit("Error during conversion %s:\n\n%s\n\nTraceback:\n%s"
% (jobargv[-1], str(err), format_tb(traceback_)), 'error')
% (jobargv[-1], str(err), "".join(format_tb(traceback))), 'error')
MW.addMessage.emit('Failed to create EPUB!', 'error', False)
MW.addTrayMessage.emit('Failed to create EPUB!', 'Critical')
if not self.conversionAlive:

View File

@@ -73,6 +73,7 @@ elif platform == "win32":
"copy_dependent_files": True,
"create_shared_zip": False,
"append_script_to_exe": True,
"replace_paths": '*=',
"excludes": ['tkinter']}},
executables=[Executable(MAIN,
base=base,