Fix exception

This commit is contained in:
belono 2023-05-31 22:41:56 +02:00
parent 707ef39e05
commit 692c0ea5a1

View File

@ -521,9 +521,9 @@ class Escpos(object):
if (not capable["hw"] and not capable["sw"]) or (
not capable["sw"] and force_software
):
raise BarcodeCodeError(
raise BarcodeTypeError(
f"""Profile {
self.profile['name']
self.profile.profile_data['name']
} - hw barcode: {capable['hw']}, sw barcode: {capable['sw']}"""
)