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

Bastian Germann bage at linutronix.de
Wed Jan 15 16:14:20 CET 2020


Am 15.01.20 um 16:10 schrieb Torben Hohn:
> 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>

Reviewed-by: Bastian Germann <bage 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)
> 



More information about the elbe-devel mailing list