зеркало из https://github.com/mozilla/bugbot.git
[assignee_no_login] Don't crash when there is no triage owner (#2181)
This commit is contained in:
Родитель
e5eda34d4a
Коммит
1bfb7851df
|
@ -6,7 +6,7 @@ import collections
|
|||
|
||||
from libmozdata import utils as lmdutils
|
||||
|
||||
from bugbot import people, utils
|
||||
from bugbot import logger, people, utils
|
||||
from bugbot.bzcleaner import BzCleaner
|
||||
from bugbot.constants import HIGH_PRIORITY, HIGH_SEVERITY
|
||||
from bugbot.user_activity import UserActivity
|
||||
|
@ -123,6 +123,10 @@ class AssigneeNoLogin(BzCleaner):
|
|||
|
||||
def handle_bug(self, bug, data):
|
||||
bugid = str(bug["id"])
|
||||
if "triage_owner_detail" not in bug:
|
||||
logger.warning("Skip bug %s: no triage owner", bugid)
|
||||
return None
|
||||
|
||||
data[bugid] = {
|
||||
"assigned_to": bug["assigned_to"],
|
||||
"triage_owner": bug["triage_owner"],
|
||||
|
|
Загрузка…
Ссылка в новой задаче