try to start server and print error, if not possible (test)

This commit is contained in:
avollkopf 2024-01-20 15:12:48 +01:00
parent 99f37fcbfa
commit 751f1721cd

View file

@ -304,4 +304,7 @@ class CraftBeerPi:
return self.app return self.app
def start(self): def start(self):
web.run_app(self.init_serivces(), port=self.static_config.get("port", 2202)) try:
web.run_app(self.init_serivces(), port=self.static_config.get("port", 2202))
except Exception as e:
print("Error Starting the server: {}".format(e))