From fac715cd71675861766732fb84741e4e25c6995b Mon Sep 17 00:00:00 2001 From: Christian Krinitsin Date: Fri, 23 May 2025 13:14:55 +0200 Subject: check json for launchpad bugs --- mailinglist/downloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mailinglist/downloader.py') diff --git a/mailinglist/downloader.py b/mailinglist/downloader.py index 0b8a4277..38d37305 100755 --- a/mailinglist/downloader.py +++ b/mailinglist/downloader.py @@ -55,7 +55,8 @@ def main(): re_match = search(r'\[Bug\s(\d+)\]', text) # matches [Bug ] if bug is issued in launchpad if re_match: - process_launchpad_bug(re_match.group(1).strip()) + if not process_launchpad_bug(re_match.group(1).strip()): + print(f"Could not parse launchpad bug with id: {re_match.group(1).strip()}") continue re_match = match(r'(?i)^re:\s*(.*)', text) # matches 'Re:', meaning it's not a new thread -- cgit 1.4.1