From 0e095dbb6336651f2bc3c76684cf6caab04a05e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20Schl=C3=BCter?= Date: Mon, 8 Dec 2014 20:39:53 +0100 Subject: [PATCH] Don't forget to close the connection --- get_incidents.py | 1 + 1 file changed, 1 insertion(+) diff --git a/get_incidents.py b/get_incidents.py index 372669d..e46b81d 100644 --- a/get_incidents.py +++ b/get_incidents.py @@ -82,6 +82,7 @@ for article in articles: digest ) c.execute(insert_query, article_tuple) +c.close() final_time = current_milli_time() - start_time print('All done in {} ms'.format(final_time))