correctly cast call to CashDrawerError()

This commit is contained in:
Alexandre Detiste 2023-12-13 21:44:10 +01:00
parent e7db5a9b4e
commit 512a5ff24a

View File

@ -1131,7 +1131,7 @@ class Escpos(object, metaclass=ABCMeta):
try: try:
self._raw(CD_KICK_DEC_SEQUENCE(*pin)) self._raw(CD_KICK_DEC_SEQUENCE(*pin))
except TypeError as err: except TypeError as err:
raise CashDrawerError(err) raise CashDrawerError(str(err))
def linedisplay_select(self, select_display: bool = False) -> None: def linedisplay_select(self, select_display: bool = False) -> None:
"""Select the line display or the printer. """Select the line display or the printer.