From 04ce284085d425741de775d3420b434529c2c8a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sat, 29 Jun 2013 13:43:45 +0200 Subject: [PATCH] Just in case something goes wrong during reading the git repo information... --- octoprint/server.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/octoprint/server.py b/octoprint/server.py index 387bd77..48ffbb4 100644 --- a/octoprint/server.py +++ b/octoprint/server.py @@ -130,7 +130,13 @@ class PrinterStateConnection(tornadio2.SocketConnection): @app.route("/") def index(): - branch, commit = util.getGitInfo() + branch = None + commit = None + try: + branch, commit = util.getGitInfo() + except: + pass + return render_template( "index.jinja2", ajaxBaseUrl=BASEURL,