-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If the extension module cannot be imported, the fallback path would trigger ‘NameError: name 'maxminddb' is not defined’. While at it: - Use an underscored name for the optional extension import to hide it a bit from view (e.g. autocomplete in interactive Python shells) - Use relative imports not unnecessarily repeat the module name everywhere
- Loading branch information
Showing
2 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters