File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 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+
7164.5.0 (2021-11-18)
817++++++++++++++++++
918
Original file line number Diff line number Diff line change 11# pylint:disable=C0111
22
33__title__ = "geoip2"
4- __version__ = "4.5 .0"
4+ __version__ = "4.6 .0"
55__author__ = "Gregory Oschwald"
66__license__ = "Apache License, Version 2.0"
77__copyright__ = "Copyright (c) 2013-2022 Maxmind, Inc."
Original file line number Diff line number Diff line change @@ -23,19 +23,24 @@ 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
3739 """
3840
41+ ip_address : Optional [str ]
42+ _prefix_len : Optional [int ]
43+
3944 def __init__ (
4045 self ,
4146 message : str ,
You can’t perform that action at this time.
0 commit comments