Skip to content
Snippets Groups Projects
Commit 7f78cb5b authored by Auke Klazema's avatar Auke Klazema
Browse files

SW-609: Fix Exception.message issue in webservice.py

parent 0e593e16
No related branches found
No related tags found
No related merge requests found
...@@ -526,7 +526,7 @@ def putTask(task_id): ...@@ -526,7 +526,7 @@ def putTask(task_id):
time.sleep(0.2) time.sleep(0.2)
except RPCException as e: 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 # task does not exist (anymore) in otdb
#so remove it from radb as well (with cascading deletes on specification) #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']) 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'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment