(bytes_payload)
| 115 | |
| 116 | |
| 117 | def decode_payload(bytes_payload): |
| 118 | try: |
| 119 | payload = json_loads(to_unicode(bytes_payload)) |
| 120 | except ValueError as exc: |
| 121 | raise DecodeError("Invalid payload value") from exc |
| 122 | if not isinstance(payload, dict): |
| 123 | raise DecodeError("Invalid payload type") |
| 124 | return payload |
| 125 | |
| 126 | |
| 127 | def prepare_raw_key(raw): |
nothing calls this directly
no test coverage detected
searching dependent graphs…