Skip to content

Commit

Permalink
APP-4522
Browse files Browse the repository at this point in the history
  • Loading branch information
bpurdy-tc committed Jun 27, 2024
1 parent 22b62df commit 1c9d8b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tcex/api/tc/v3/_gen/_gen_object_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def replace_artifact(self, **kwargs):
f'''{self.i2}elif all(isinstance(item, dict) for item in data):'''
f'''{self.i3}transformed_data = [{model_class}(**d) for d in data]''',
f'''{self.i2}else:'''
f'''{self.i3}raise ValueError("Invalid data to replace_{model_type.singular()}")''',
f'''{self.i3}raise ValueError('Invalid data to replace_{model_type.singular()}')''',
'',
'',
f'''{self.i2}for item in transformed_data:''',
Expand Down
2 changes: 1 addition & 1 deletion tcex/api/tc/v3/intel_requirements/intel_requirement.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def replace_keyword_section(self, data: dict | list | ObjectABC | KeywordSection
elif all(isinstance(item, dict) for item in data):
transformed_data = [KeywordSectionModel(**d) for d in data]
else:
raise ValueError("Invalid data to replace_keyword_section")
raise ValueError('Invalid data to replace_keyword_section')

for item in transformed_data:
item._staged = True
Expand Down

0 comments on commit 1c9d8b3

Please sign in to comment.