From 0b4645e3eae2b1a63bad7e942bd438c1a4787775 Mon Sep 17 00:00:00 2001 From: Clint Armstrong Date: Mon, 14 Sep 2015 09:41:03 -0400 Subject: [PATCH] Revert "catch cursor close" This reverts commit f5d6ad62b330721af78b8b2d2bfcbbe8f23acaad. --- poller-service.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/poller-service.py b/poller-service.py index a9cae2623..c46d81a4d 100755 --- a/poller-service.py +++ b/poller-service.py @@ -96,10 +96,7 @@ class DB: self.connect() except (AttributeError, MySQLdb.ProgrammingError): log.warning('WARNING: MySQL Programming Error during query, attempting query again.') - try: - cursor.close() - except: - pass + cursor.close() def get_config_data():