summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-12-20 13:50:51 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-12-20 16:07:53 +0100
commit2a15ce89ce132d198ab6895e64af2ed7179621ed (patch)
tree03bfe3e91317905f19bfa8da7fdbda58343f30a1
parent2a47c0e3b74d7f4c60bba509644bd5b401ff1adb (diff)
crashreportScraper: fix ids
Change-Id: I55b3529cdda0219fabb4ea14c8fa2a90e88b5a78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178914 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rwxr-xr-xbin/crashreportScraper.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/crashreportScraper.py b/bin/crashreportScraper.py
index 37636f2c462e..6ac8f5f142f4 100755
--- a/bin/crashreportScraper.py
+++ b/bin/crashreportScraper.py
@@ -107,7 +107,7 @@ def parse_details_and_get_info(url, gitRepo):
print("Timeout")
raise
- details = soup.find("div", {"id": "details"}).tbody
+ details = soup.find("div", {"id": "details-tab-panel"}).tbody
tr_list = details.find_all("tr")
reason = tr_list[8].td.text.strip()
@@ -144,7 +144,7 @@ def parse_details_and_get_info(url, gitRepo):
#multiline
codeLine = "\"" + codeLine + "\""
- metadata = soup.find("div", {"id": "metadata"}).tbody
+ metadata = soup.find("div", {"id": "metadata-tab-panel"}).tbody
tr_list = metadata.find_all("tr")
unoCommands = ""
for tr in tr_list:
@@ -201,5 +201,5 @@ if __name__ == '__main__':
crashID, crashReason, crashOS, crashStack, codeLine, unoCommands, '\n'])
f.write(line)
f.flush()
- except (requests.exceptions.Timeout, AttributeError):
+ except (requests.exceptions.Timeout):
continue