Commits

Dimitris Glezos  committed 12473de

minor: raise nicer exc in svn browser

  • Participants
  • Parent commits 277c4ec

Comments (0)

Files changed (1)

File transifex/vcs/lib/types/svn.py

 import pysvn
 
 from django.conf import settings
+from vcs.lib import RepoError
 from vcs.lib.types import (VCSBrowserMixin, BrowserError)
 
 REPO_PATH = settings.REPO_PATHS['svn']
         assert os.path.commonprefix(
             [self.path, REPO_PATH]) == REPO_PATH, (
             "Unit checkout path outside of nominal repo checkout path.")
-            
+
         self.client = pysvn.Client()
 
 
         svn co <remote_path> <self.path>
         
         """
+        try:
+            self.client.checkout(self.remote_path, self.path)
+        except Exception, e:
+            raise RepoError("Checkout from remote repository failed.")
 
-        self.client.checkout(self.remote_path, self.path)
 
     def _clean_dir(self):
         """