diff --git a/bugbot/rules/assignee_no_login.py b/bugbot/rules/assignee_no_login.py index 456c49488..26aef6097 100644 --- a/bugbot/rules/assignee_no_login.py +++ b/bugbot/rules/assignee_no_login.py @@ -137,8 +137,8 @@ def get_priority_change_date(self, bug): for change in reversed(bug["history"]): if ( - change["field_name"] == "priority" - and change["added"] == current_priority + change.get("field_name") == "priority" + and change.get("added") == current_priority ): return datetime.strptime(change["when"], "%Y-%m-%dT%H:%M:%SZ") return None