diff --git a/kojihub/db.py b/kojihub/db.py index 1a04e215..d5e29df9 100644 --- a/kojihub/db.py +++ b/kojihub/db.py @@ -349,7 +349,7 @@ def db_lock(name, wait=True): # in the no-wait case, this could mean either that the row is already locked, or that # the lock does not exist, so we check query = "SELECT name FROM locks WHERE name=%(name)s" - rows =_fetchMulti(query, data) + rows = _fetchMulti(query, data) if rows: # the lock exists, but we did not acquire it return False diff --git a/plugins/hub/protonmsg.py b/plugins/hub/protonmsg.py index 44f31da7..0489ff4e 100644 --- a/plugins/hub/protonmsg.py +++ b/plugins/hub/protonmsg.py @@ -9,7 +9,6 @@ import json import logging import random -import psycopg2 from proton import Message, SSLDomain from proton.handlers import MessagingHandler from proton.reactor import Container