From 1f456c7b09b6e6da150ae39129398602043f878a Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Wed, 21 Apr 2021 15:50:02 +0200 Subject: [PATCH] Ignore when it can't read project's phid --- project_grouper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/project_grouper.py b/project_grouper.py index bb1c1a6..b6baa0f 100644 --- a/project_grouper.py +++ b/project_grouper.py @@ -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(' ', '_') - project_phid = client.lookupPhid('#' + project_name) + 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: