[elbe-devel] [PATCH 4/4] efilesystem: fix unused exception variable

Torben Hohn torben.hohn at linutronix.de
Wed Jan 15 16:10:43 CET 2020


pylint complains:

elbepack/efilesystem.py:412: [W0612(unused-variable), TargetFs.part_target] Unused variable 'e'

remove it.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/efilesystem.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/efilesystem.py b/elbepack/efilesystem.py
index 621f206f3..1d3b793d0 100644
--- a/elbepack/efilesystem.py
+++ b/elbepack/efilesystem.py
@@ -412,7 +412,7 @@ class TargetFs(ChRootFilesystem):
                    (self.fname(''), targetdir, sfs_name))
                 # only append filename if creating mksquashfs was successful
                 self.images.append(sfs_name)
-            except CommandError as e:
+            except CommandError:
                 # error was logged; continue
                 pass
             os.chdir(oldwd)
-- 
2.20.1




More information about the elbe-devel mailing list