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

safe-global / safe-eth-py / 35837464278
94%

Build:
DEFAULT BRANCH: main
Ran 23 Sep 2026 08:34AM UTC
Jobs 2
Files 126
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

23 Sep 2026 08:29AM UTC coverage: 93.546% (+0.06%) from 93.485%
35837464278

push

github

web-flow
fix: Wrap transport errors in the library's own exception types (#2753)

* fix: Wrap transport errors in the library's own exception types

The raw JSON-RPC call sites of EthereumClient and AsyncEthereumClient
leaked requests and aiohttp exceptions, so callers had to import the HTTP
library to handle a node being down.

Each call site now raises the exception it already raised for a non ok
response, with the original exception kept as the cause:

- batch_call_custom: EthereumClientConnectionException, a new type that also
  inherits from the builtin ConnectionError, so callers catching the previous
  ConnectionError keep working
- Erc20Manager.get_info: InvalidERC20Info
- raw_batch_request: EthereumClientConnectionException, which is a ValueError

wrap_http_exceptions lives in safe_eth.util.http next to prepare_http_session.
It covers both transports and the JSON decoding of the response, which fails
the same way when a proxy answers with HTML.

* fix: Say querying instead of connecting in the wrapped error message

The wrapper also covers responses that cannot be decoded, which happen after
the connection succeeded.

95 of 102 new or added lines in 6 files covered. (93.14%)

11480 of 12272 relevant lines covered (93.55%)

1.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
73.36
0.47% safe_eth/eth/async_ethereum_client.py
3
87.09
0.2% safe_eth/eth/ethereum_client.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.10 - 35837464278.1 23 Sep 2026 08:34AM UTC 126
93.54
GitHub Action Run
2 run-3.11 - 35837464278.2 23 Sep 2026 08:34AM UTC 126
93.55
GitHub Action Run
Source Files on build 35837464278
  • Tree
  • List 126
  • Changed 7
  • Source Changed 6
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35837464278
  • cf46dea0 on github
  • Prev Build on main (#35743833947)
  • Next Build on main (#35846878915)
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