Skip to content

Commit 4cd5c73

Browse files
authored
Merge pull request #97 from chennes/handleGitTimeoutInManager
Add handling for ProcessInterrupted exception
2 parents eaedcaf + 89ea529 commit 4cd5c73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

addonmanager_git.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,11 @@ def _synchronous_call_git(self, args: List[str]) -> str:
459459
+ f"Called with: {' '.join(final_args)}\n\n"
460460
+ f"Returned stderr:\n{e.stderr}"
461461
) from e
462+
except utils.ProcessInterrupted as e:
463+
raise GitFailed(
464+
"The git process was interrupted due to a network timeout (or explicit user cancellation)\n"
465+
+ f"Called with: {' '.join(final_args)}\n"
466+
) from e
462467

463468
return proc.stdout
464469

0 commit comments

Comments
 (0)