Skip to content

Commit b11e59a

Browse files
committed
Clarify errors on opening unreadable file
1 parent c395e06 commit b11e59a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,11 @@ Database Reader Exceptions
394394
--------------------------
395395

396396
If the database file does not exist or is not readable, the constructor will
397-
raise a ``FileNotFoundError``. If the IP address passed to a method is
398-
invalid, a ``ValueError`` will be raised. If the file is invalid or there is a
399-
bug in the reader, a ``maxminddb.InvalidDatabaseError`` will be raised with a
400-
description of the problem. If an IP address is not in the database, a
401-
``AddressNotFoundError`` will be raised.
397+
raise a ``FileNotFoundError`` or a ``PermissionError``. If the IP address passed
398+
to a method is invalid, a ``ValueError`` will be raised. If the file is invalid
399+
or there is a bug in the reader, a ``maxminddb.InvalidDatabaseError`` will be
400+
raised with a description of the problem. If an IP address is not in the
401+
database, a ``AddressNotFoundError`` will be raised.
402402

403403
Values to use for Database or Dictionary Keys
404404
---------------------------------------------

0 commit comments

Comments
 (0)