Fix exception
This commit is contained in:
parent
707ef39e05
commit
692c0ea5a1
@ -521,9 +521,9 @@ class Escpos(object):
|
|||||||
if (not capable["hw"] and not capable["sw"]) or (
|
if (not capable["hw"] and not capable["sw"]) or (
|
||||||
not capable["sw"] and force_software
|
not capable["sw"] and force_software
|
||||||
):
|
):
|
||||||
raise BarcodeCodeError(
|
raise BarcodeTypeError(
|
||||||
f"""Profile {
|
f"""Profile {
|
||||||
self.profile['name']
|
self.profile.profile_data['name']
|
||||||
} - hw barcode: {capable['hw']}, sw barcode: {capable['sw']}"""
|
} - hw barcode: {capable['hw']}, sw barcode: {capable['sw']}"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user