Skip to content

Commit e84339c

Browse files
committed
PR suggestion
1 parent 3a62bcc commit e84339c

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.ci/generate_operators_doc.py

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,16 @@ def fetch_doc_info(server, operator_name):
5757
"optional": output.optional,
5858
}
5959
)
60-
try:
61-
for configuration_key in spec.config_specification:
62-
configuration = spec.config_specification[configuration_key]
63-
configurations_info.append(
64-
{
65-
"name": configuration.name,
66-
"types": [str(t) for t in configuration.type_names],
67-
"document": configuration.document,
68-
"default_value": configuration.default_value_str,
69-
}
70-
)
71-
except:
72-
print(f"Operator {operator_name} - error in fetching configuration info!")
60+
for configuration_key in spec.config_specification:
61+
configuration = spec.config_specification[configuration_key]
62+
configurations_info.append(
63+
{
64+
"name": configuration.name,
65+
"types": [str(t) for t in configuration.type_names],
66+
"document": configuration.document,
67+
"default_value": configuration.default_value_str,
68+
}
69+
)
7370
properties = spec.properties
7471
plugin = properties.pop("plugin", "N/A")
7572

@@ -89,7 +86,7 @@ def fetch_doc_info(server, operator_name):
8986

9087
license = properties.pop("license", "None")
9188

92-
exposure = properties.pop("exposure", "N/A")
89+
exposure = properties.pop("exposure", "private")
9390
scripting_info = {
9491
"category": category,
9592
"plugin": plugin,

0 commit comments

Comments
 (0)