[elbe-devel] [PATCH v2 07/24] pkgutils: remove useless returns

Manuel Traut manut at linutronix.de
Thu Feb 8 14:16:53 CET 2018


code doesn't run after 'raise' so remove the followed return.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/pkgutils.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/elbepack/pkgutils.py b/elbepack/pkgutils.py
index 70a27971..5ba1fb16 100644
--- a/elbepack/pkgutils.py
+++ b/elbepack/pkgutils.py
@@ -231,10 +231,8 @@ def download_pkg(prj,
         urilist = get_uri(prj, defs, arch, package, incl_deps)
     except KeyError:
         raise NoKinitrdException('no package %s available' % package)
-        return
     except SystemError:
         raise NoKinitrdException('a configured mirror is not reachable')
-        return
     except CommandError as e:
         raise NoKinitrdException("couldn't download package %s" % package)
 
-- 
2.15.1




More information about the elbe-devel mailing list