Closed fisher85 closed 2 years ago
Without checking, I believe the text in the documentation is correct when using the C extension, but the pure Python code will throw whatever error that Python itself throws. Perhaps the text should just be updated to:
If the database file does not exist or is not readable, the constructor will raise an exception.
Yes, it will be right:
If the database file does not exist or is not readable, the constructor will raise an exception.
This has been clarified. Thanks!
I read the documentation here: https://github.com/maxmind/GeoIP2-python#database-reader-exceptions
But if the database is not readable (access denied, disk damaged, etc.), other exceptions will be thrown. It would be more correct to write like this:
Or even more:
And I think an example like this could be given here: