From fbd23be1d2d21d31567a5dfdb3799118e8d9331f Mon Sep 17 00:00:00 2001 From: Dave Lasley Date: Tue, 13 Dec 2016 11:59:23 -0800 Subject: [PATCH] [FIX] hw_customer_display: Add guard for external import --- hw_customer_display/controllers/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw_customer_display/controllers/main.py b/hw_customer_display/controllers/main.py index f6e4358b..f3bc5c95 100644 --- a/hw_customer_display/controllers/main.py +++ b/hw_customer_display/controllers/main.py @@ -39,6 +39,12 @@ except (ImportError, IOError) as err: logger.debug(err) +try: + from unidecode import unidecode +except ImportError: + logger.info('`unidecode` Python pacakge not found') + + class CustomerDisplayDriver(Thread): def __init__(self): Thread.__init__(self)