Just in case something goes wrong during reading the git repo information...
(cherry picked from commit 04ce284)
This commit is contained in:
1 parent
e2bfdfd10c
commit
2992438249
1 file changed
+7
-1
+7
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user