mirror of
https://github.com/python-escpos/python-escpos
synced 2025-12-02 09:43:30 +00:00
Passed Exception message to the CashDrawerError class
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user