Skip to content

Commit 9b1e9b3

Browse files
authored
Allow empty example service list when finding action from title id (#142)
1 parent d85ec39 commit 9b1e9b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

aws_doc_sdk_examples_tools/doc_gen.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,12 @@ def fill_missing_fields(self):
330330
# TODO Log and find which tributaries this effects, as it was supposed to be caught by validations.
331331
continue
332332
action = (
333-
next((k for k in example.services[service_id]), None)
333+
next((k for k in example.services.get(service_id, [])), None)
334334
or example.id.split("_", 1)[1]
335335
)
336+
if action is None:
337+
# TODO Log and find which tributaries this effects, as it was supposed to be caught by validations.
338+
continue
336339
example.fill_display_fields(
337340
self.categories, self.services[service_id].short, action
338341
)

0 commit comments

Comments
 (0)