diff --git a/app/app.py b/app/app.py index e9fa368..f9fd022 100644 --- a/app/app.py +++ b/app/app.py @@ -142,7 +142,7 @@ def door(username): @app.route('/spaceapi.json') def spaceapi(): - cammiestatus = requests.get('https://kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi') + cammiestatus = requests.get('https://kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi', timeout=1) # Avoid XML parsing status = '0' not in cammiestatus.text response = jsonify({