Passed Exception message to the CashDrawerError class

This commit is contained in:
reck31 2017-10-24 19:22:12 +05:30
parent d1e7052fa1
commit bb359e8365

View File

@ -697,8 +697,8 @@ class Escpos(object):
else: else:
try: try:
self._raw(CD_KICK_DEC_SEQUENCE(*pin)) self._raw(CD_KICK_DEC_SEQUENCE(*pin))
except: except Exception as e:
raise CashDrawerError() raise CashDrawerError(e)
def linedisplay_select(self, select_display=False): def linedisplay_select(self, select_display=False):
""" Selects the line display or the printer """ Selects the line display or the printer