Renamed TypeError Exception alias

This commit is contained in:
reck31 2017-10-26 00:35:36 +05:30
parent 9d9028e093
commit 1f3dd41bbb

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 TypeError as e: except TypeError as err:
raise CashDrawerError(e) raise CashDrawerError(err)
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