From 0b443087bd0af0978253dc36dd16d2e78ad0a7b9 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 5 Jun 2021 19:14:37 +0200 Subject: [PATCH] fix(Version): Fix print output --- main.py | 2 +- tools/its.py | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/main.py b/main.py index c38f5dc0..cbd6872c 100755 --- a/main.py +++ b/main.py @@ -495,7 +495,7 @@ def main(): "Bitte installiere die aktuellste Version. Link zum Download:\n" "https://github.com/iamnotturner/vaccipy/releases/tag/" + get_latest_version()) except: - print("An exception occurred", sys.exc_info()[0]) + print("Konnte nicht auf neuste Version geprüft werden", sys.exc_info()[0]) print("\n") print("Automatische Terminbuchung für den Corona Impfterminservice\n") diff --git a/tools/its.py b/tools/its.py index a1c2514e..d36db2b5 100644 --- a/tools/its.py +++ b/tools/its.py @@ -791,15 +791,6 @@ def terminsuche(code: str, plz_impfzentren: list, kontakt: dict, PATH: str, zeit # durchlaufe jede eingegebene PLZ und suche nach Termin for plz in its.plz_impfzentren: termin_gefunden, status_code = its.termin_suchen(plz, zeitrahmen) - - try: - # Updateprüfung - hasupdate = update_available() - - if hasupdate: - its.log.warn("Update verfügbar!") - except Exception as exec: - its.log.warn("Konnte nicht auf neuste Version geprüft werden") # Durchlauf aller PLZ unterbrechen, wenn Termin gefunden wurde if termin_gefunden: