Signed-off-by: Thomas Petazzoni <[email protected]>
---
 www/maposmatic/nominatim.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/maposmatic/nominatim.py b/www/maposmatic/nominatim.py
index 7fc3cdd..0b313b7 100644
--- a/www/maposmatic/nominatim.py
+++ b/www/maposmatic/nominatim.py
@@ -330,8 +330,8 @@ def _prepare_and_filter_entries(entries):
         # Enrich the entry with more info
         _prepare_entry(cursor, entry)
 
-        # Some cleanup
-        cursor.close()
+    # Some cleanup
+    cursor.close()
 
     return filtered_results
 
-- 
1.7.4.1


Reply via email to