+self
This commit is contained in:
parent
fe4ecafe59
commit
21efc5d63e
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class DB(object):
|
|||
def __iter__(self):
|
||||
try:
|
||||
self.conn = psycopg2.connect("dbname={}".format(dbname))
|
||||
self.cursor = conn.cursor()
|
||||
self.cursor = self.conn.cursor()
|
||||
self.cursor.execute(self.query)
|
||||
except Exception as e:
|
||||
log.error("DB query failed: %s" % e)
|
||||
|
|
Loading…
Add table
Reference in a new issue