diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-10-26 12:37:52 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-10-26 12:37:52 +0200 |
commit | ff5121b7512f4677ddca1e922e4c66ca6b546694 (patch) | |
tree | bfc0086f27a07620addd95ebd3c03037283d874b /mensa/logic.py | |
parent | e556881560d47d1ac79034da99253f1c9c84c92b (diff) | |
download | mensa-ff5121b7512f4677ddca1e922e4c66ca6b546694.tar.gz mensa-ff5121b7512f4677ddca1e922e4c66ca6b546694.tar.bz2 mensa-ff5121b7512f4677ddca1e922e4c66ca6b546694.zip |
Fixed error handling
Diffstat (limited to 'mensa/logic.py')
-rwxr-xr-x | mensa/logic.py | 2 |
1 files changed, 2 insertions, 0 deletions
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={}) : |