mirror of
https://github.com/python-escpos/python-escpos
synced 2025-09-13 09:09:58 +00:00
Add missing .upper() for function type
This commit is contained in:
@@ -421,7 +421,7 @@ class Escpos(object):
|
|||||||
else: # DEFAULT POSITION: BELOW
|
else: # DEFAULT POSITION: BELOW
|
||||||
self._raw(BARCODE_TXT_BLW)
|
self._raw(BARCODE_TXT_BLW)
|
||||||
|
|
||||||
bc_types = BARCODE_TYPES[function_type]
|
bc_types = BARCODE_TYPES[function_type.upper()]
|
||||||
if bc.upper() not in bc_types.keys():
|
if bc.upper() not in bc_types.keys():
|
||||||
# TODO: Raise a better error, or fix the message of this error type
|
# TODO: Raise a better error, or fix the message of this error type
|
||||||
raise BarcodeTypeError("Barcode type {bc} not valid for barcode function type {function_type}".format(
|
raise BarcodeTypeError("Barcode type {bc} not valid for barcode function type {function_type}".format(
|
||||||
|
Reference in New Issue
Block a user