Browse Source

[FIX] hw_telium_payment_terminal: Add guard for external import

pull/142/head
Dave Lasley 8 years ago
committed by Pedro M. Baeza
parent
commit
79b016b479
  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