X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/7397781806f3e2380dc43710a4a0593fe1e6f4b8..7d1da0f551537ab1cd65c57454fb8a261967f155:/code/main.py 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."""