Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 6f426d1

Browse files
committed
fix(updates): Fix for random network exceptions
Occasionally would get random network exceptions, this should be caught now with a clear error shown to the user that update checking failed.
1 parent 8a4e6c7 commit 6f426d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gitcommit/gitcommit.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,10 @@ def run():
391391
elif confirm in confirmation_validator.rejections:
392392
print("Aborting the commit...")
393393

394-
check_for_update()
394+
try:
395+
check_for_update()
396+
except:
397+
print("An error occured whilst checking for updates.")
395398

396399

397400
def main():

0 commit comments

Comments
 (0)