diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2015-11-18 07:54:28 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2015-11-18 07:54:28 +0100 |
commit | 0d57bba352fb59d1cab47013f163ddecfb2c97f8 (patch) | |
tree | 429a5092c36565f87eedf4bc6215d42cc8f6acdd | |
parent | 3433ecfc545316e13164de1c8779255a9ea797a5 (diff) | |
download | mgarepo-0d57bba352fb59d1cab47013f163ddecfb2c97f8.tar mgarepo-0d57bba352fb59d1cab47013f163ddecfb2c97f8.tar.gz mgarepo-0d57bba352fb59d1cab47013f163ddecfb2c97f8.tar.bz2 mgarepo-0d57bba352fb59d1cab47013f163ddecfb2c97f8.tar.xz mgarepo-0d57bba352fb59d1cab47013f163ddecfb2c97f8.zip |
Manage error return in svn exec command
-rw-r--r-- | MgaRepo/svn.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 \ |