From 0a48d6a6883a94f8a1a51b54886ae4e51026cd50 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Tue, 16 May 2023 13:18:56 +0200 Subject: [PATCH] fix flake8 Related: https://pagure.io/koji/issue/3790 --- kojihub/db.py | 2 +- plugins/hub/protonmsg.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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