add workers crashed restart pc message (#1239)
This commit is contained in:
1 parent
3660f2370f
commit
d2dc089c62
1 file changed
+1
-1
@@ -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