git: fix retry message

This commit is contained in:
Jörg Thalheim 2023-12-04 08:12:03 +01:00
parent e476849f72
commit ed8a6c0333

View file

@ -345,7 +345,8 @@ class GitWithRetry(steps.Git):
retry_counter += 1 retry_counter += 1
if retry_counter == 3: if retry_counter == 3:
raise e raise e
self.step_status.setText(f"Retrying git clone (error: {e})") log: Log = yield self.addLog("log")
yield log.addStderr(f"Retrying git clone (error: {e})\n")
yield asyncSleep(2 << retry_counter) # 2, 4, 8 yield asyncSleep(2 << retry_counter) # 2, 4, 8