()
| 515 | logger.debug("Req --> " + raw) |
| 516 | |
| 517 | def default_response(): |
| 518 | if "id" in message: |
| 519 | return { |
| 520 | "jsonrpc": "2.0", |
| 521 | "id": message["id"], |
| 522 | "error": { |
| 523 | "code": 123, |
| 524 | "message": "unhandled method {}".format(message["method"]), |
| 525 | }, |
| 526 | } |
| 527 | |
| 528 | with mainlock: |
| 529 | response = None |