mirror of
https://github.com/python-escpos/python-escpos
synced 2025-09-13 09:09:58 +00:00
correctly cast call to CashDrawerError()
This commit is contained in:
@@ -1131,7 +1131,7 @@ class Escpos(object, metaclass=ABCMeta):
|
||||
try:
|
||||
self._raw(CD_KICK_DEC_SEQUENCE(*pin))
|
||||
except TypeError as err:
|
||||
raise CashDrawerError(err)
|
||||
raise CashDrawerError(str(err))
|
||||
|
||||
def linedisplay_select(self, select_display: bool = False) -> None:
|
||||
"""Select the line display or the printer.
|
||||
|
Reference in New Issue
Block a user