Skip to content

Commit ff83d44

Browse files
committed
Use KeyError for missing platform name error
Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 2abf3d1 commit ff83d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/codebasin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def main():
249249

250250
for name in args.platforms:
251251
if name not in analysis_toml["platform"].keys():
252-
raise RuntimeError(
252+
raise KeyError(
253253
f"Platform {name} requested on the command line "
254254
+ "does not exist in the configuration file.",
255255
)

0 commit comments

Comments
 (0)