From 517435efadaa30d00d7318533ece22408d3dad6f Mon Sep 17 00:00:00 2001 From: Kristi Date: Mon, 20 Apr 2015 10:58:04 +0100 Subject: [PATCH] Raising the right error when wrong charcode is used --- escpos/escpos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/escpos/escpos.py b/escpos/escpos.py index 2208e30..b6befdd 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -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 """