From 925d2bc83e04e8bcb196e46894ca7acbe9b33bb8 Mon Sep 17 00:00:00 2001 From: Leon Jacobs Date: Wed, 17 Feb 2021 13:57:35 +0200 Subject: [PATCH] (fix) ignore any errors that occured while checking for updates --- objection/utils/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/objection/utils/__init__.py b/objection/utils/__init__.py index f997d4fe..6252e600 100644 --- a/objection/utils/__init__.py +++ b/objection/utils/__init__.py @@ -53,5 +53,8 @@ def new_secho(text: str, **kwargs) -> None: real_secho = click.secho click.secho = new_secho -# kick off a background thread to check the version of objection -threading.Thread(target=check_version).start() +try: + # kick off a background thread to check the version of objection + threading.Thread(target=check_version).start() +except Exception: + pass