Skip to content

Commit b919c3c

Browse files
author
yarden-sony
committed
minor change
1 parent b46ad23 commit b919c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model_compression_toolkit/target_platform_capabilities/schema/schema_compatability.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def tpc_to_current_schema_version(tpc: schema.TargetPlatformCapabilities):
6262
}
6363
while tpc.SCHEMA_VERSION < schema.TargetPlatformCapabilities.SCHEMA_VERSION:
6464
if tpc.SCHEMA_VERSION not in conversion_map:
65-
raise Exception(f"TPC using schema version {tpc.SCHEMA_VERSION} which is not in schemas conversion map. "
66-
f"Make sure the schema version is supported, or add it in case it's a new schema version")
65+
raise KeyError(f"TPC using schema version {tpc.SCHEMA_VERSION} which is not in schemas conversion map. "
66+
f"Make sure the schema version is supported, or add it in case it's a new schema version")
6767
tpc = conversion_map[tpc.SCHEMA_VERSION](tpc)
6868
return tpc

0 commit comments

Comments
 (0)