Browse Source

[FIX] hw_customer_display: Add guard for external import

pull/142/head
Dave Lasley 8 years ago
committed by Pedro M. Baeza
parent
commit
3196594399
  1. 6
      hw_customer_display/controllers/main.py

6
hw_customer_display/controllers/main.py

@ -39,6 +39,12 @@ except (ImportError, IOError) as err:
logger.debug(err) logger.debug(err)
try:
from unidecode import unidecode
except ImportError:
logger.info('`unidecode` Python pacakge not found')
class CustomerDisplayDriver(Thread): class CustomerDisplayDriver(Thread):
def __init__(self): def __init__(self):
Thread.__init__(self) Thread.__init__(self)

Loading…
Cancel
Save