changeset 1977:3b0255d936c8 beta

fixed exception in rhodecode_crawler
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 02 Feb 2012 00:31:16 +0200
parents a76e9bacbedc
children 164199e476e9
files rhodecode/tests/rhodecode_crawler.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/tests/rhodecode_crawler.py	Thu Feb 02 00:31:00 2012 +0200
+++ b/rhodecode/tests/rhodecode_crawler.py	Thu Feb 02 00:31:16 2012 +0200
@@ -103,6 +103,7 @@
     repo = vcs.get_repo(jn(PROJECT_PATH, PROJECT))
 
     from rhodecode.lib.compat import OrderedSet
+    from vcs.exceptions import RepositoryError
 
     paths_ = OrderedSet([''])
     try:
@@ -117,7 +118,7 @@
             for f in files:
                 paths_.add(f.path)
 
-    except vcs.exception.RepositoryError, e:
+    except RepositoryError, e:
         pass
 
     cnt = 0