From 54f31b36f24b0fc330452327c4db53ca72dceadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Tue, 28 Jun 2016 10:57:37 +0200 Subject: don't make error throwing at end of detectVCS() conditional --- MgaRepo/rpmutil.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index 92f663d..6f7f415 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -34,8 +34,7 @@ def detectVCS(url): return SVN() if os.path.exists(os.path.join(url,".git")) and os.path.isdir(os.path.join(url,".git")): return GIT() - else: - raise Error("No supported repository found at path: %s" % url) + raise Error("No supported repository found at path: %s" % url) def get_spec(pkgdirurl, targetdir=".", submit=False): svn = detectVCS(pkgdirurl) -- cgit v1.2.1