Commit 5f2f7449 authored by bne86's avatar bne86

indentation

parent c7c01eba
Pipeline #1532 passed with stage
in 17 seconds
......@@ -87,13 +87,13 @@ def store_message(db_driver, key, value):
except KeyError:
logging.error('Catching errors currently not implemented')
elif key in ['DELETE']:
try:
result = db_session.run('MATCH (o:Object {name: {oname}})'
'DETACH DELETE o',
{'oname': value[u'Object']})
logging.info('Ran %s', result.statement)
except KeyError:
logging.error('Catching errors currently not implemented')
try:
result = db_session.run('MATCH (o:Object {name: {oname}})'
'DETACH DELETE o',
{'oname': value[u'Object']})
logging.info('Ran %s', result.statement)
except KeyError:
logging.error('Catching errors currently not implemented')
else:
logging.info('Unsupported method %s', key)
db_session.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment