mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
Windows: Truncated tracebacks
This commit is contained in:
@@ -450,9 +450,9 @@ class WorkerThread(QtCore.QThread):
|
|||||||
except Exception as err:
|
except Exception as err:
|
||||||
GUI.progress.content = ''
|
GUI.progress.content = ''
|
||||||
self.errors = True
|
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"
|
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.addMessage.emit('Failed to create EPUB!', 'error', False)
|
||||||
MW.addTrayMessage.emit('Failed to create EPUB!', 'Critical')
|
MW.addTrayMessage.emit('Failed to create EPUB!', 'Critical')
|
||||||
if not self.conversionAlive:
|
if not self.conversionAlive:
|
||||||
|
|||||||
1
setup.py
1
setup.py
@@ -73,6 +73,7 @@ elif platform == "win32":
|
|||||||
"copy_dependent_files": True,
|
"copy_dependent_files": True,
|
||||||
"create_shared_zip": False,
|
"create_shared_zip": False,
|
||||||
"append_script_to_exe": True,
|
"append_script_to_exe": True,
|
||||||
|
"replace_paths": '*=',
|
||||||
"excludes": ['tkinter']}},
|
"excludes": ['tkinter']}},
|
||||||
executables=[Executable(MAIN,
|
executables=[Executable(MAIN,
|
||||||
base=base,
|
base=base,
|
||||||
|
|||||||
Reference in New Issue
Block a user