Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

Release/10.3.1#3343

Merged
basfroman merged 21 commits into
masterfrom
release/10.3.1
May 6, 2026
Merged

Release/10.3.1#3343
basfroman merged 21 commits into
masterfrom
release/10.3.1

Conversation

@basfroman

@basfroman basfroman commented May 6, 2026

Copy link
Copy Markdown
Collaborator

10.3.1 /2026-05-06

What's Changed

New Contributors

Full Changelog: v10.3.0...v10.3.1

ArtificialXai and others added 20 commits April 24, 2026 11:08
Closes #3309.

Each provider in `get_external_ip` was wrapped in
`except ExternalIPNotFound`, but none of the underlying calls
(`requests.get`, `ip_to_int`, `os.popen`+`readline`,
`urllib.request.urlopen`, `json.loads`, wikipedia header lookup)
ever raise `ExternalIPNotFound`. As a result the first failing
provider crashed the entire function instead of falling through
to the next one.

Catch the exceptions that can actually occur:
  * RequestException  — for `requests.get` failures
  * AddrFormatError   — for malformed IPs
  * OSError           — for `os.popen`/curl failures
  * URLError          — for urllib failures
  * ValueError        — for json + int parse failures
  * KeyError          — for the wikipedia header
  * AssertionError    — for the isinstance guards
  * ExternalIPNotFound — kept for backward compat

Three regression tests cover: AWS connection error → curl
fallthrough, malformed AWS IP → curl fallthrough, and
all-providers-exhausted → ExternalIPNotFound.
…ing-ip-fallback-chain

fix(networking): catch real exceptions in get_external_ip fallback chain
…io-1.0

Should fix the change to pytest-asyncio 1.3
* add error link

* Update test__init__.py
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

Bittensor SDK virtual environment sizes by Python version:

Python 3.10: 193 MB
Python 3.11: 208 MB
Python 3.12: 200 MB
Python 3.13: 200 MB

1 similar comment
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

Bittensor SDK virtual environment sizes by Python version:

Python 3.10: 193 MB
Python 3.11: 208 MB
Python 3.12: 200 MB
Python 3.13: 200 MB

@basfroman basfroman merged commit ac742be into master May 6, 2026
709 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants