From 0d57bba352fb59d1cab47013f163ddecfb2c97f8 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Wed, 18 Nov 2015 07:54:28 +0100 Subject: Manage error return in svn exec command --- MgaRepo/svn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MgaRepo/svn.py') diff --git a/MgaRepo/svn.py b/MgaRepo/svn.py index ca880e1..6de8a85 100644 --- a/MgaRepo/svn.py +++ b/MgaRepo/svn.py @@ -44,12 +44,12 @@ class SVN: except Error as e: msg = None if e.args: - if "Permission denied" in e.args[0]: + if "Permission denied" in e.args: msg = ("It seems ssh-agent or ForwardAgent are not setup " "or your username is wrong. See " "https://wiki.mageia.org/en/Packagers_ssh" " for more information.") - elif "authorization failed" in e.args[0]: + elif "authorization failed" in e.args: msg = ("Note that mgarepo does not support any HTTP " "authenticated access.") if kwargs.get("show") and \ -- cgit v1.2.1