File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 77++++++++++++++++++
88
99* Added support for GeoLite2 ASN database.
10+ * Correct documentation of errors raised when using the database reader.
11+ Reported by Radek Holý. GitHub #42.
1012
11132.4.2 (2016-12-08)
1214++++++++++++++++++
Original file line number Diff line number Diff line change @@ -313,11 +313,13 @@ ISP Database
313313 Database Reader Exceptions
314314--------------------------
315315
316- If the database file does not exist or is not readable, a ``ValueError `` will
317- be thrown. If the file is invalid or there is a bug in the reader, a
318- ``maxminddb.InvalidDatabaseError `` will be thrown with a description of the
316+ If the database file does not exist or is not readable, the constructor will
317+ raise a ``FileNotFoundError `` on Python 3 or an ``IOError `` on Python 2.
318+ If the IP address passed to a method is invalid, a ``ValueError `` will be
319+ raised. If the file is invalid or there is a bug in the reader, a
320+ ``maxminddb.InvalidDatabaseError `` will be raised with a description of the
319321problem. If an IP address is not in the database, a ``AddressNotFoundError ``
320- exception will be thrown .
322+ will be raised .
321323
322324Values to use for Database or Dictionary Keys
323325---------------------------------------------
Original file line number Diff line number Diff line change 44__version__ = '2.4.2'
55__author__ = 'Gregory Oschwald'
66__license__ = 'Apache License, Version 2.0'
7- __copyright__ = 'Copyright (c) 2013-2016 Maxmind, Inc.'
7+ __copyright__ = 'Copyright (c) 2013-2017 Maxmind, Inc.'
You can’t perform that action at this time.
0 commit comments