1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

raise exception when TypeError occurs in cashdraw (#268)

This commit is contained in:
reck
2017-12-04 03:51:29 +05:30
committed by Patrick Kanzler
parent d1e7052fa1
commit 3c3dab95f5
4 changed files with 23 additions and 2 deletions

View File

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