404 errors are not email-worthy.
[invirt/packages/invirt-web.git] / code / main.py
index 8199250..2b7cf07 100755 (executable)
@@ -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."""