1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

Merge pull request #45 from Krispy2009/master

Raising the right error when wrong charcode is used
This commit is contained in:
manpaz
2015-04-21 14:07:36 -07:00

View File

@@ -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 """