summaryrefslogtreecommitdiff
path: root/src/leap/util/__init__.py
blob: a70a9a8b0cf4adc0b9dd6cfaf6a6e06e002e4e00 (plain)
1
2
3
4
5
6
7
8
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