From 2992438249db1ef6b10bceea8cd8c27e0579ce8a 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... (cherry picked from commit 04ce284) --- octoprint/server.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/octoprint/server.py b/octoprint/server.py index b2c177ef..f1d9b393 100644 --- a/octoprint/server.py +++ b/octoprint/server.py @@ -111,7 +111,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,