Update PeerDbPlugin.py

This commit is contained in:
cclauss 2017-07-16 22:48:35 +02:00 committed by GitHub
parent 21d0b829d3
commit 8db16a1421

View file

@ -79,7 +79,7 @@ class ContentDbPlugin(object):
"INSERT INTO peer (site_id, address, port, hashfield, time_added) VALUES (?, ?, ?, ?, ?)", "INSERT INTO peer (site_id, address, port, hashfield, time_added) VALUES (?, ?, ?, ?, ?)",
self.iteratePeers(site) self.iteratePeers(site)
) )
except Exception, err: except Exception as err:
site.log.error("Save peer error: %s" % err) site.log.error("Save peer error: %s" % err)
finally: finally:
cur.execute("END") cur.execute("END")