Stop passing status_url_path to render denied template, to avoid exception

This commit is contained in:
Micah Lee 2020-12-13 10:48:16 -08:00
parent a3df6d6b60
commit 9bb853756a
2 changed files with 4 additions and 12 deletions

View file

@ -61,10 +61,7 @@ class ShareModeWeb(SendBaseModeWeb):
and self.download_in_progress
)
if deny_download:
r = make_response(
render_template("denied.html"),
static_url_path=self.web.static_url_path,
)
r = make_response(render_template("denied.html"))
return self.web.add_security_headers(r)
# If download is allowed to continue, serve download page
@ -87,11 +84,7 @@ class ShareModeWeb(SendBaseModeWeb):
and self.download_in_progress
)
if deny_download:
r = make_response(
render_template(
"denied.html", static_url_path=self.web.static_url_path
)
)
r = make_response(render_template("denied.html"))
return self.web.add_security_headers(r)
# Prepare some variables to use inside generate() function below