Remove static_html template code (#596)

selenium-screenshot-testing
Kevin Chung 2018-03-21 18:50:59 -04:00 committed by GitHub
parent 0022b6978a
commit c0e418d900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -115,10 +115,7 @@ def custom_css():
def static_html(template):
page = utils.get_page(template)
if page is None:
try:
return render_template('%s.html' % template)
except TemplateNotFound:
abort(404)
abort(404)
else:
if page.auth_required and utils.authed() is False:
return redirect(url_for('auth.login', next=request.path))