[elbe-devel] [PATCH 10/25] pylint - db: fix unused parameter p
Manuel Traut
manut at linutronix.de
Wed Aug 29 21:02:40 CEST 2018
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
elbepack/db.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/elbepack/db.py b/elbepack/db.py
index fe14195e..f1c0489f 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -764,8 +764,7 @@ class ElbeDB(object):
def add_project_file(self, builddir, name, mime_type, description=None):
with session_scope(self.session) as s:
try:
- p = s.query(Project).filter(Project.builddir == builddir).\
- one()
+ s.query(Project).filter(Project.builddir == builddir).one()
except NoResultFound:
raise ElbeDBError(
"project %s is not registered in the database" %
--
2.18.0
More information about the elbe-devel
mailing list