Skip to content

Commit be3b4c8

Browse files
committed
Add release notes for 4.6.0 and clarify documentation
1 parent 82a741c commit be3b4c8

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

HISTORY.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
History
55
-------
66

7+
4.6.0 (2022-06-21)
8+
++++++++++++++++++
9+
10+
* The ``AddressNotFoundError`` class now has an ``ip_address`` attribute
11+
with the lookup address and ``network`` property for the empty network
12+
in the database containing the IP address. These are only available
13+
when using a database, not the web service. Pull request by illes.
14+
GitHub #130.
15+
716
4.5.0 (2021-11-18)
817
++++++++++++++++++
918

geoip2/errors.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ class AddressNotFoundError(GeoIP2Error):
2323
2424
.. attribute:: ip_address
2525
26-
The IP address used in the lookup.
26+
The IP address used in the lookup. This is only available for database
27+
lookups.
2728
2829
:type: str
2930
3031
.. attribute:: network
3132
3233
The network associated with the error. In particular, this is the
33-
largest network where no address would be found.
34+
largest network where no address would be found. This is only
35+
available for database lookups.
3436
3537
:type: ipaddress.IPv4Network or ipaddress.IPv6Network
3638

0 commit comments

Comments
 (0)