aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'libpathod/app.py')
-rw-r--r--libpathod/app.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/libpathod/app.py b/libpathod/app.py
index 6f12c0a2..38d0be33 100644
--- a/libpathod/app.py
+++ b/libpathod/app.py
@@ -123,18 +123,14 @@ def _preview(is_request):
args["syntaxerror"] = str(v)
args["marked"] = v.marked()
return render(template, False, **args)
- except language.FileAccessDenied:
- args["error"] = "File access is disabled."
- return render(template, False, **args)
s = cStringIO.StringIO()
args["pauses"] = r.preview_safe()
- c = app.config["pathod"].check_policy(r)
+ c = app.config["pathod"].check_policy(r, app.config["pathod"].request_settings)
if c:
args["error"] = c
return render(template, False, **args)
-
if is_request:
r.serve(s, app.config["pathod"].request_settings, host="example.com")
else: