diff options
author | Kali Kaneko <kali@leap.se> | 2013-03-14 09:44:43 +0900 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-03-14 09:44:43 +0900 |
commit | 1190284ac9cc65104c292fc81c86a40076ce2cdc (patch) | |
tree | 6cd8d798e89244fe10cfaeb344cf7a650f48c0cf /src/leap/common/__init__.py |
initial commit
Diffstat (limited to 'src/leap/common/__init__.py')
-rw-r--r-- | src/leap/common/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/leap/common/__init__.py b/src/leap/common/__init__.py new file mode 100644 index 0000000..a70a9a8 --- /dev/null +++ b/src/leap/common/__init__.py @@ -0,0 +1,9 @@ +import logging +logger = logging.getLogger(__name__) + +try: + import pygeoip + HAS_GEOIP = True +except ImportError: + logger.debug('PyGeoIP not found. Disabled Geo support.') + HAS_GEOIP = False |