Merge pull request #1 from Krispy2009/Krispy2009-patch-1

Raising the right error when wrong charcode is used
This commit is contained in:
Kristi 2015-04-20 10:58:49 +01:00
commit f3933d5d20
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ class Escpos:
elif code.upper() == "THAI18": elif code.upper() == "THAI18":
self._raw(CHARCODE_THAI18) self._raw(CHARCODE_THAI18)
else: else:
raise CharCode_error() raise CharCodeError()
def barcode(self, code, bc, width, height, pos, font): def barcode(self, code, bc, width, height, pos, font):
""" Print Barcode """ """ Print Barcode """