Commit 21efc5d6 authored by Nico Schottelius's avatar Nico Schottelius


parent fe4ecafe
......@@ -99,7 +99,7 @@ class DB(object):
def __iter__(self):
self.conn = psycopg2.connect("dbname={}".format(dbname))
self.cursor = conn.cursor()
self.cursor = self.conn.cursor()
except Exception as e:
log.error("DB query failed: %s" % e)
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