From 7d1da0f551537ab1cd65c57454fb8a261967f155 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 16 Jun 2008 04:08:39 -0400 Subject: [PATCH] 404 errors are not email-worthy. svn path=/trunk/packages/sipb-xen-www/; revision=607 --- code/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/main.py b/code/main.py index 8199250..2b7cf07 100755 --- a/code/main.py +++ b/code/main.py @@ -466,7 +466,7 @@ console will suffer artifacts. def badOperation(u, s, e): """Function called when accessing an unknown URI.""" - raise CodeError("Unknown operation") + return ({'Status': '404 Not Found'}, 'Invalid operation.') def infoDict(username, state, machine): """Get the variables used by info.tmpl.""" -- 1.7.9.5