You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/04/24 00:04:02 UTC

[42/50] [abbrv] git commit: [#6083] Handle alternate exception msg

[#6083] Handle alternate exception msg

Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/90e263e1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/90e263e1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/90e263e1

Branch: refs/heads/tv/vagrant
Commit: 90e263e1a2ccebb1730822613231fee2481c9d99
Parents: 8d64c44
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Tue Apr 23 17:02:59 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Tue Apr 23 17:02:59 2013 +0000

----------------------------------------------------------------------
 ForgeSVN/forgesvn/model/svn.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/90e263e1/ForgeSVN/forgesvn/model/svn.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/model/svn.py b/ForgeSVN/forgesvn/model/svn.py
index fc9879c..9fc9ed1 100644
--- a/ForgeSVN/forgesvn/model/svn.py
+++ b/ForgeSVN/forgesvn/model/svn.py
@@ -670,7 +670,8 @@ class SVNImplementation(M.RepositoryImplementation):
         try:
             return self._svn.revpropget('revision', url=self._url)[0].number == 0
         except pysvn.ClientError as e:
-            if str(e).startswith("Unable to connect"):
+            if str(e).startswith("Unable to connect") or \
+                    str(e).startswith("Unable to open"):
                 return True
             else:
                 raise