incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [38/50] [abbrv] git commit: [#6083] Handle alternate exception msg
Date Wed, 24 Apr 2013 04:54:43 GMT
[#6083] Handle alternate exception msg

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@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/docs
Commit: 90e263e1a2ccebb1730822613231fee2481c9d99
Parents: 8d64c44
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Tue Apr 23 17:02:59 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@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


Mime
View raw message