diff options
author | pippijn <pippijn@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-17 13:02:02 +0000 |
---|---|---|
committer | pippijn <pippijn@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-17 13:02:02 +0000 |
commit | 6274504ba37678896034fb6933b5f4a4425a3238 (patch) | |
tree | 15f0a11d502d4a38de60c87742fa221717eaf91a /src | |
parent | 5bf8b9e7e9a8bc670d1b745a890d328547365759 (diff) |
Ignore all exceptions for now.. m_rpc_json is rather willing to throw
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7461 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_rpc_json.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/m_rpc_json.cpp b/src/modules/m_rpc_json.cpp index 6d9b024f9..1cbbcf254 100644 --- a/src/modules/m_rpc_json.cpp +++ b/src/modules/m_rpc_json.cpp @@ -47,7 +47,14 @@ class ModuleRpcJson : public Module if (http->GetURI() == "/jsonrpc" && http->GetType() == "POST") { std::string response_text; - json::rpc::process (http, response_text, http->GetPostData().c_str()); + try + { + json::rpc::process (http, response_text, http->GetPostData().c_str()); + } + catch (std::runtime_error &) + { + // ignore + } data << response_text; /* Send the document back to m_httpd */ |