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

Commit

Permalink
fix(updates): Fix for random network exceptions
Browse files Browse the repository at this point in the history
Occasionally would get random network exceptions, this should be caught
now with a clear error shown to the user that update checking failed.
  • Loading branch information
nebbles committed Dec 23, 2019
1 parent 8a4e6c7 commit 6f426d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gitcommit/gitcommit.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,10 @@ def run():
elif confirm in confirmation_validator.rejections:
print("Aborting the commit...")

check_for_update()
try:
check_for_update()
except:
print("An error occured whilst checking for updates.")


def main():
Expand Down

0 comments on commit 6f426d1

Please sign in to comment.