projects
/
invirt/packages/invirt-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7397781
)
404 errors are not email-worthy.
author
Anders Kaseorg
<andersk@mit.edu>
Mon, 16 Jun 2008 08:08:39 +0000
(
04:08
-0400)
committer
Anders Kaseorg
<andersk@mit.edu>
Mon, 16 Jun 2008 08:08:39 +0000
(
04:08
-0400)
svn path=/trunk/packages/sipb-xen-www/; revision=607
code/main.py
patch
|
blob
|
history
diff --git
a/code/main.py
b/code/main.py
index
8199250
..
2b7cf07
100755
(executable)
--- 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."""