[elbe-devel] [PATCH 57/75] dbaction: Fix Pylint

Olivier Dion dion at linutronix.de
Mon May 25 17:42:50 CEST 2020


18:0:   R0205: (useless-object-inheritance)
272:15: W0703: (broad-except)

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/dbaction.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/elbepack/dbaction.py b/elbepack/dbaction.py
index 7cd66314..0c1d8a33 100644
--- a/elbepack/dbaction.py
+++ b/elbepack/dbaction.py
@@ -14,7 +14,8 @@ from getpass import getpass
 from shutil import copyfileobj
 from elbepack.db import ElbeDB, ElbeDBError
 
-
+# TODO:py3 Remove object inheritance
+# pylint: disable=useless-object-inheritance
 class DbAction(object):
 
     actiondict = {}
@@ -269,6 +270,7 @@ class BuildAction(DbAction):
             ep = db.load_project(args[0])
             ep.build()
             db.update_project_files(ep)
+        # pylint: disable=broad-except
         except Exception as e:
             db.update_project_files(ep)
             db.reset_busy(args[0], "build_failed")
-- 
2.26.2




More information about the elbe-devel mailing list