Just in case something goes wrong during reading the git repo information...
parent
1caba2d634
commit
04ce284085
|
@ -130,7 +130,13 @@ class PrinterStateConnection(tornadio2.SocketConnection):
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def index():
|
def index():
|
||||||
branch, commit = util.getGitInfo()
|
branch = None
|
||||||
|
commit = None
|
||||||
|
try:
|
||||||
|
branch, commit = util.getGitInfo()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"index.jinja2",
|
"index.jinja2",
|
||||||
ajaxBaseUrl=BASEURL,
|
ajaxBaseUrl=BASEURL,
|
||||||
|
|
Loading…
Reference in New Issue