Mercurial > kallithea
diff rhodecode/model/scm.py @ 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 | 68e34f5cf122 |
children | c93234e9ac36 |
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