[elbe-devel] [PATCH 21/40] pylint: db - fix unused parameter p
Manuel Traut
manut at linutronix.de
Fri Sep 14 13:56:33 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 334207ad..bf1dba3f 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.19.0.rc2
More information about the elbe-devel
mailing list