• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

emlove / jsonrpc-base / 46487163190
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: 2.3.0
DEFAULT BRANCH: master
Ran 30 Nov 2026 06:42PM UTC
Jobs 1
Files 2
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Nov 2026 06:42PM UTC coverage: 100.0%. Remained the same
46487163190

push

github

web-flow
Raise ProtocolError for an error member that is not an object (#11)

A response whose error member is a string, a number, a list or a
boolean made parse_response raise a bare AttributeError, as it called
get() on it. JSON-RPC 2.0 requires the error member to be an object, so
such a response is a protocol error now.

The get attribute of the error member is read once, and anything whose
get is callable is still read as before, so a mapping made by a custom
loads, like a UserDict, keeps its code and message. The arguments keep
the shape of the other error responses, (code, message, data), with an
empty code like an error object without one, so callers that read the
data from args[2] keep working.

Co-authored-by: Emily Love Watson <emily@emlove.me>

65 of 65 branches covered (100.0%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 1 file covered. (100.0%)

164 of 164 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 46487163190.1 30 Nov 2026 06:42PM UTC 2
100.0
Source Files on build 46487163190
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 5661a623 on github
  • Prev Build on ci-updates (#46485404102)
  • Next Build on main (#46487202460)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc