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

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

Build:
DEFAULT BRANCH: main
Ran 30 Nov 2026 02:31PM UTC
Jobs 5
Files 129
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 02:29PM UTC coverage: 94.261% (+0.09%) from 94.167%
46439526574

push

github

web-flow
fix: raise typed errors in the Sourcify and Etherscan clients (#2874)

* fix: raise typed errors in the Sourcify and Etherscan clients

Sourcify:
- Return None only for the "not verified" 404 (match: null)
- 429 raises SourcifyRateLimitError
- Any other non ok status, and any other 404, raises
  SourcifyHttpError with the status code
- Connection errors, timeouts and unexpected bodies raise
  SourcifyConnectionError, also a builtin ConnectionError
- The constructor still raises OSError when the chain list cannot
  be loaded, with the client error as the cause
- AsyncSourcifyClient passes max_requests to the sync session

Etherscan V2:
- Timeout and "server too busy" answers raise EtherscanTemporaryError
- "Community Free API limit reached" raises EtherscanDailyRateLimitError
- A response that is not a JSON object raises EtherscanConnectionError

* test: skip Sourcify network tests on HTTP 5xx

A 5xx from Sourcify is out of our control, like a rate limit or a
connection error. A 4xx still fails the test.

* docs: say the Sourcify constructor raises OSError

The constructor loads the chain list and raises OSError when it cannot
be loaded, with the SourcifyClientException as the cause.

* fix: check nested Sourcify fields and chain ids

- A nested field with the wrong type (abi not a list, compilation,
  metadata or settings not an object) raises SourcifyConnectionError
  instead of AttributeError
- A chain id that is not a number is skipped instead of raising
  TypeError

234 of 246 new or added lines in 4 files covered. (95.12%)

3 existing lines in 1 file now uncovered.

12434 of 13191 relevant lines covered (94.26%)

4.39 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
92.65
0.65% safe_eth/eth/tests/clients/test_sourcify_client.py

Coverage Regressions

Lines Coverage ∆ File
3
92.65
0.65% safe_eth/eth/tests/clients/test_sourcify_client.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.15 - 46439526574.1 30 Nov 2026 02:31PM UTC 129
86.77
GitHub Action Run
2 run-3.12 - 46439526574.2 30 Nov 2026 02:31PM UTC 129
87.01
GitHub Action Run
3 run-3.11 - 46439526574.3 30 Nov 2026 02:32PM UTC 129
87.01
GitHub Action Run
4 run-3.13 - 46439526574.4 30 Nov 2026 02:31PM UTC 129
87.01
GitHub Action Run
5 run-3.14 - 46439526574.5 30 Nov 2026 02:31PM UTC 129
94.16
GitHub Action Run
Source Files on build 46439526574
  • Tree
  • List 129
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46439526574
  • 4a22783a on github
  • Prev Build on main (#46026955175)
  • Next Build on main (#46439556454)
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