mirror of
https://github.com/ciromattia/kcc
synced 2026-09-01 16:37:06 +00:00
add workers crashed restart pc message (#1239)
This commit is contained in:
@@ -660,7 +660,7 @@ def imgDirectoryProcessing(path, job_progress=''):
|
|||||||
raise UserWarning("Conversion interrupted.")
|
raise UserWarning("Conversion interrupted.")
|
||||||
if len(workerOutput) > 0:
|
if len(workerOutput) > 0:
|
||||||
rmtree(os.path.join(path, '..', '..'), True)
|
rmtree(os.path.join(path, '..', '..'), True)
|
||||||
raise RuntimeError("One of workers crashed. Cause: " + workerOutput[0][0], workerOutput[0][1])
|
raise RuntimeError("One of workers crashed. Maybe restart PC. Cause: " + workerOutput[0][0], workerOutput[0][1])
|
||||||
else:
|
else:
|
||||||
rmtree(os.path.join(path, '..', '..'), True)
|
rmtree(os.path.join(path, '..', '..'), True)
|
||||||
raise UserWarning("C2E: Source directory is empty.")
|
raise UserWarning("C2E: Source directory is empty.")
|
||||||
|
|||||||
Reference in New Issue
Block a user