Raising the right error when wrong charcode is used
This commit is contained in:
parent
122ff9a363
commit
517435efad
|
@ -168,7 +168,7 @@ class Escpos:
|
|||
elif code.upper() == "THAI18":
|
||||
self._raw(CHARCODE_THAI18)
|
||||
else:
|
||||
raise CharCode_error()
|
||||
raise CharCodeError()
|
||||
|
||||
def barcode(self, code, bc, width, height, pos, font):
|
||||
""" Print Barcode """
|
||||
|
|
Loading…
Reference in New Issue