Commits

James Mills  committed 0e56a42

- circuits.web: Raise a ``RuntimeError`` exception if when trying to create
an instance of the ``JSONRPC`` dispatcher we have no "json" support.

  • Participants
  • Parent commits 1c56b7a

Comments (0)

Files changed (1)

File circuits/web/dispatchers/jsonrpc.py

     def __init__(self, path=None, target="*", encoding="utf-8"):
         super(JSONRPC, self).__init__()
 
+        if json is None:
+            raise RuntimeError("No json support available")
+
         self.path = path
         self.target = target
         self.encoding = encoding