summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/services.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/services.py b/scripts/services.py
index 4b77b2da..5d5c16f3 100755
--- a/scripts/services.py
+++ b/scripts/services.py
@@ -91,11 +91,14 @@ def handler(req):
if content.find("# *** ERROR ***") != -1:
req.write(content)
+ apache.log_error("possible cheetah template error")
return apache.HTTP_ERROR
- elif content.find("# profile not found") != -1 or content.find("# system not found") != -1:
+ elif content.find("# profile not found") != -1 or content.find("# system not found") != -1 or content.find("# object not found") != -1:
req.content_type = "text/html;charset=utf-8"
+ req.write(" ")
+ apache.log_error("content not found")
return apache.HTTP_NOT_FOUND
else:
req.write(content)
- return apache.HTTP_OK
+ return apache.OK