Browse Source

[FIX] hw_telium_payment_terminal: Add guard for external import

pull/471/head
Dave Lasley 8 years ago
committed by Florent de Labarre
parent
commit
a511103072
  1. 6
      hw_telium_payment_terminal/controllers/main.py

6
hw_telium_payment_terminal/controllers/main.py

@ -40,6 +40,12 @@ except (ImportError, IOError) as err:
logger.debug(err)
try:
import pycountry
except ImportError:
_logger.info('`pycountry` Python package not found')
class TeliumPaymentTerminalDriver(Thread):
def __init__(self):
Thread.__init__(self)

Loading…
Cancel
Save