mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	Raising the right error when wrong charcode is used
This commit is contained in:
		| @@ -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 """ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kristi
					Kristi