# HG changeset patch # User Marcin Kuzminski # Date 2012-12-18 17:44:33 # Node ID 56cdbcf0678af89e2fea177cf669e529281a832d # Parent 0c1c17db467c2fb7af746120f4aa1096bbe3130a made update repoinfo script more failsafe when dealing with database entries not synced with filesystem diff --git a/rhodecode/lib/update_repoinfo.py b/rhodecode/lib/update_repoinfo.py --- a/rhodecode/lib/update_repoinfo.py +++ b/rhodecode/lib/update_repoinfo.py @@ -73,7 +73,8 @@ class UpdateCommand(BasePasterCommand): else: repo_list = Repository.getAll() for repo in repo_list: - last_change = repo.scm_instance.last_change + last_change = (repo.scm_instance.last_change if repo.scm_instance + else datetime.datetime.utcfromtimestamp(0)) repo.update_last_change(last_change) def update_parser(self):