From 96201e7f035f76468de0a1585ea71f41eb340212 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 20 Apr 2022 10:38:19 -0300 Subject: [PATCH] Avoid retrying when KiAuto reports a KiCad crash - It will be implemented in KiAuto 1.6.11 --- kibot/kiplot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kibot/kiplot.py b/kibot/kiplot.py index ef215cee..216a8dbb 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -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)