bin/crashreportScraper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 2a15ce89ce132d198ab6895e64af2ed7179621ed Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Fri Dec 20 13:50:51 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Dec 20 16:07:53 2024 +0100 crashreportScraper: fix ids Change-Id: I55b3529cdda0219fabb4ea14c8fa2a90e88b5a78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178914 Tested-by: Xisco Fauli <xiscofa...@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> 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, ' ']) f.write(line) f.flush() - except (requests.exceptions.Timeout, AttributeError): + except (requests.exceptions.Timeout): continue