Apply suggestions from code review

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
This commit is contained in:
Erik Sundell
2021-08-26 03:32:55 +02:00
parent d6c48b15fe
commit bc71ad6d73
4 changed files with 6 additions and 6 deletions

View File

@@ -1039,8 +1039,6 @@ def get_class(resource_name):
}
if resource_name not in class_dict:
raise ValueError(
"Kind must be one of {}, not {}".format(
", ".join(class_dict), resource_name
)
f'Kind must be one of {", ".join(class_dict)}, not {resource_name}'
)
return class_dict[resource_name]