diff --git a/app.py b/app.py index 385e16b..66a2166 100644 --- a/app.py +++ b/app.py @@ -69,7 +69,9 @@ def close_connection(exception): @app.route('/') def route_index(): - version = json.load(open('version.json', 'r')) + version = None + if os.path.isfile('version.json'): + version = json.load(open('version.json', 'r')) return render_template('index.html', version=version) diff --git a/templates/index.html b/templates/index.html index b8a0251..240953d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -56,7 +56,13 @@
- +