Skip to content

Commit d5819e9

Browse files
committed
Minor updates
1 parent 6a3e6c6 commit d5819e9

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tools/scrape.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,14 @@ def create_setter(name: str, type_value: str):
227227

228228
table = s.find_all(DocumentId.ATTRIBUTE.value, {
229229
'class': DocumentId.RESPONSE_TYPE_CLASS.value})
230-
type_name = s.find('h3').get_text()
230+
element = s.find('h3')
231+
232+
if element is not None:
233+
type_name = element.get_text()
234+
else:
235+
type_name = "UnknownType"
236+
print("[WARNING]: <h3> tag not found in the current soup object.")
237+
231238

232239
sub_types_array = []
233240
for t in table:

tools/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"notes": "\n/*\n----------------------------------------------------------\n\tGENERATED FILE, should be edited to suit the purpose.\n----------------------------------------------------------\n*/",
66
"imports": "\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport org.azd.abstractions.serializer.SerializableEntity;\n"
77
},
8-
"url": "https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-item-types-field/get?view=azure-devops-rest-7.1&tabs=HTTP#workitemtypefieldwithreferences",
8+
"url": "https://learn.microsoft.com/en-us/rest/api/azure/devops/test/attachments/get-test-sub-result-attachments?view=azure-devops-rest-7.2#testattachment",
99
"commentOnly": false
1010
}

0 commit comments

Comments
 (0)