From 0f3861e168d9edc1611b106af32e3cbce3f86ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Tue, 28 Jun 2016 11:44:49 +0200 Subject: raise error at end of protocol detection in detectVCS() too --- MgaRepo/rpmutil.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index 6f7f415..443a403 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -27,8 +27,7 @@ def detectVCS(url): return GIT() elif "svn" in uri: return SVN() - else: - raise Error("Unknown protocol %s for %s" % (protocol, url)) + raise Error("Unknown protocol %s for %s" % (protocol, url)) elif os.path.exists(url) and os.path.isdir(url): if os.path.exists(os.path.join(url,".svn")) and os.path.isdir(os.path.join(url,".svn")): return SVN() -- cgit v1.2.1