# HG changeset patch # User Marcin Kuzminski # Date 1360526753 -3600 # Node ID 85f69bf84d95e27b7b7e406d436254b2098a7a3d # Parent c394a564ab714d5342ff7c61f17c6ea3062946bc non-lightweight dashboard mode is now more error proof when it stumbles across bad or damaged repositories diff -r c394a564ab71 -r 85f69bf84d95 rhodecode/model/scm.py --- a/rhodecode/model/scm.py Sun Feb 10 20:35:35 2013 +0100 +++ b/rhodecode/model/scm.py Sun Feb 10 21:05:53 2013 +0100 @@ -106,16 +106,17 @@ )(dbr.repo_name, 'get repo check'): continue - if scmr is None: + try: + last_change = scmr.last_change + tip = h.get_changeset_safe(scmr, 'tip') + except Exception: log.error( '%s this repository is present in database but it ' - 'cannot be created as an scm instance' % dbr.repo_name + 'cannot be created as an scm instance, org_exc:%s' + % (dbr.repo_name, traceback.format_exc()) ) continue - last_change = scmr.last_change - tip = h.get_changeset_safe(scmr, 'tip') - tmp_d = {} tmp_d['name'] = dbr.repo_name tmp_d['name_sort'] = tmp_d['name'].lower()