Marcin Kuzminski  committed 8748f79

change the way of detection of corrupted repos. sqlalchemy objects needs to be checkec `is None`.

  • Participants
  • Parent commits e76833c
  • Branches beta

Comments (0)

Files changed (1)

File rhodecode/model/

             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)
                 last_change = repo.last_change