From 5f2f74492a249a39ab14dc09798a6d30c2541e09 Mon Sep 17 00:00:00 2001
From: bne86 <benedikt@zam476.zam.kfa-juelich.de>
Date: Mon, 23 Jan 2017 14:01:49 +0100
Subject: [PATCH] indentation

---
 docker/kafka/neo4j-consumer/consumer.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/docker/kafka/neo4j-consumer/consumer.py b/docker/kafka/neo4j-consumer/consumer.py
index bff3911..852ae7b 100644
--- a/docker/kafka/neo4j-consumer/consumer.py
+++ b/docker/kafka/neo4j-consumer/consumer.py
@@ -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()
-- 
GitLab