From 2abc8b29a69b09891c195a8958a86d6716487488 Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Mon, 8 Nov 2021 09:29:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BE=20fix=20bug:=20error=20if=20journa?= =?UTF-8?q?l=20does=20not=20have=20notes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 373a023..0ec93eb 100644 --- a/main.py +++ b/main.py @@ -92,7 +92,7 @@ def treat_issues(): # Skip issue if a no_bot_tag is found in the issue description or any of its journals def find_no_bot_tag_in_journals(journals): for journal in journals: - if no_bot_tag in journal.notes: + if hasattr(journal, 'notes') and no_bot_tag in journal.notes: return True return False if no_bot_tag in issue.description or find_no_bot_tag_in_journals(issue.journals):