From ff5121b7512f4677ddca1e922e4c66ca6b546694 Mon Sep 17 00:00:00 2001 From: Gabriel Pérez-Cerezo Date: Thu, 26 Oct 2017 12:37:52 +0200 Subject: Fixed error handling --- mensa/logic.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mensa/logic.py') diff --git a/mensa/logic.py b/mensa/logic.py index d2851d5..f14b89c 100755 --- a/mensa/logic.py +++ b/mensa/logic.py @@ -35,6 +35,8 @@ def get_food(restlist=False, options={}) : print(i.human_name + ": No menu found. This could be due to a holiday or due to an error in the script.") except urllib.error.HTTPError as e : print(i.human_name + ": Fetching menu failed: %s" % str(e)) + except : + print(i.human_name + ": Unknown error") return foodl def render(to_render, rendlist=False, options={}) : -- cgit v1.2.3