Avoid retrying when KiAuto reports a KiCad crash

- It will be implemented in KiAuto 1.6.11
This commit is contained in:
Salvador E. Tropea 2022-04-20 10:38:19 -03:00
parent 417257a048
commit 96201e7f03
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ def exec_with_retry(cmd):
result = run(cmd, stdout=PIPE, stderr=PIPE, universal_newlines=True)
ret = result.returncode
retry -= 1
if ret > 0 and ret < 128 and retry:
if ret != 16 and (ret > 0 and ret < 128 and retry):
# 16 is KiCad crash
logger.debug('Failed with error {}, retrying ...'.format(ret))
else:
extract_errors(result.stderr)