From 45bed436c4644b9fdd8c019a3a909147f4eef4c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20V=C3=A1squez?= Date: Thu, 19 Jan 2017 18:52:23 -0600 Subject: [PATCH] [FIX] Pylint on hw_customer_display and hw_telium_payment_terminal and flake8 on pos_remove_pos_category --- hw_customer_display/controllers/main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw_customer_display/controllers/main.py b/hw_customer_display/controllers/main.py index e2184f7b..831dc2be 100644 --- a/hw_customer_display/controllers/main.py +++ b/hw_customer_display/controllers/main.py @@ -26,15 +26,18 @@ import simplejson import time from threading import Thread, Lock from Queue import Queue -from unidecode import unidecode -from serial import Serial import openerp.addons.hw_proxy.controllers.main as hw_proxy from openerp import http from openerp.tools.config import config - logger = logging.getLogger(__name__) +try: + from serial import Serial + from unidecode import unidecode +except (ImportError, IOError) as err: + logger.debug(err) + class CustomerDisplayDriver(Thread): def __init__(self):