mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-11-09 13:42:38 +01:00
Ignore when it can't read project's phid
This commit is contained in:
parent
0faddcb714
commit
1f456c7b09
1 changed files with 4 additions and 1 deletions
|
@ -223,7 +223,10 @@ for rule in rules:
|
|||
wanted_project_phid = client.lookupPhid('#' + rule['add'])
|
||||
for project_name in rule['in']:
|
||||
project_name = project_name.replace(' ', '_')
|
||||
try:
|
||||
project_phid = client.lookupPhid('#' + project_name)
|
||||
except:
|
||||
continue
|
||||
for task_phid in client.getTasksWithProject(project_phid):
|
||||
# if a task is in multiple 'in' projects, still only process it once
|
||||
if task_phid in handled_tasks:
|
||||
|
|
Loading…
Reference in a new issue