diff --git a/files/routes/jinja2.py b/files/routes/jinja2.py index e2e5acc77..e25902df6 100644 --- a/files/routes/jinja2.py +++ b/files/routes/jinja2.py @@ -89,8 +89,8 @@ def git_head(): # or repo, so I think this isn't a weak link. with open('.git/HEAD', encoding='utf_8') as head_f: head_txt = head_f.read() - head_path = git_regex.match(head_txt).group(1) try: + head_path = git_regex.match(head_txt).group(1) with open('.git/' + head_path, encoding='utf_8') as ref_f: gitref = ref_f.read()[:7] except: