File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
model_compression_toolkit/target_platform_capabilities/schema Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments