changeset 1229:8748f7974ba8 beta

change the way of detection of corrupted repos. sqlalchemy objects needs to be checkec `is None`.
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 08 Apr 2011 15:12:10 +0200
parents e76833cd555a
children 146b7309e84a
files rhodecode/model/scm.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/scm.py	Thu Apr 07 09:01:11 2011 +0200
+++ b/rhodecode/model/scm.py	Fri Apr 08 15:12:10 2011 +0200
@@ -139,7 +139,7 @@
             if r_dbr is not None:
                 repo, dbrepo = r_dbr
 
-                if not repo and dbrepo:
+                if repo is None and dbrepo is None:
                     log.error('Repository %s looks somehow corrupted', r_name)
                     continue
                 last_change = repo.last_change