summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_rpc_json.cpp9
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 */