From 7f78cb5b26a45e1cd192ba616dabe46c73aa4740 Mon Sep 17 00:00:00 2001 From: Auke Klazema <klazema@astron.nl> Date: Mon, 25 Mar 2019 10:57:16 +0000 Subject: [PATCH] SW-609: Fix Exception.message issue in webservice.py --- .../ResourceAssignmentEditor/lib/webservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SAS/ResourceAssignment/ResourceAssignmentEditor/lib/webservice.py b/SAS/ResourceAssignment/ResourceAssignmentEditor/lib/webservice.py index 2c434d095ab..d90f25dbe21 100755 --- a/SAS/ResourceAssignment/ResourceAssignmentEditor/lib/webservice.py +++ b/SAS/ResourceAssignment/ResourceAssignmentEditor/lib/webservice.py @@ -526,7 +526,7 @@ def putTask(task_id): time.sleep(0.2) except RPCException as e: - if 'does not exist' in e.message: + if 'does not exist' in str(e): # task does not exist (anymore) in otdb #so remove it from radb as well (with cascading deletes on specification) logger.warn('task with otdb_id %s does not exist anymore in OTDB. removing task radb_id %s from radb', task['otdb_id'], task['id']) -- GitLab