Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Fehlerbeseitigung
Browse files Browse the repository at this point in the history
  • Loading branch information
Floskinner committed May 28, 2021
1 parent 8a605c4 commit 17108e6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,15 @@ def __termin_suchen(self):
Alle Threads sind deamon Thread (Sofort töten sobald der Bot beendet wird)
"""

kontaktdaten = self.__get_kontaktdaten(Modus.TERMIN_SUCHEN)
zeitspanne = self.__get_zeitspanne()

try:
kontaktdaten = self.__get_kontaktdaten(Modus.TERMIN_SUCHEN)
zeitspanne = self.__get_zeitspanne()

check_alle_kontakt_daten_da(Modus.TERMIN_SUCHEN, kontaktdaten)

except FileNotFoundError as error:
QtWidgets.QMessageBox.critical(self, "Datei nicht gefunden!", f"Datei zum Laden konnte nicht gefunden werden\n\nBitte erstellen")
return
except FehlendeDatenException as error:
QtWidgets.QMessageBox.critical(self, "Daten unvollständig!", f"Es fehlen Daten in der JSON Datei\n\n{error}")
return
Expand Down

0 comments on commit 17108e6

Please sign in to comment.