From 6f426d1b07f384289050b510e0947b3e95507486 Mon Sep 17 00:00:00 2001 From: nebbles Date: Mon, 23 Dec 2019 10:50:04 +0000 Subject: [PATCH] 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. --- gitcommit/gitcommit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitcommit/gitcommit.py b/gitcommit/gitcommit.py index 524a468..19de16e 100644 --- a/gitcommit/gitcommit.py +++ b/gitcommit/gitcommit.py @@ -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():