# HG changeset patch # User RhodeCode Admin # Date 2023-12-28 14:25:35 # Node ID 711a48785cddeb9f4c8e7d7eb7f62f785ecb67ff # Parent c24343a3b283d2a07e2c16ad928605af7c0738fc fix(repo): fixed empty config case diff --git a/rhodecode/lib/vcs/backends/hg/repository.py b/rhodecode/lib/vcs/backends/hg/repository.py --- a/rhodecode/lib/vcs/backends/hg/repository.py +++ b/rhodecode/lib/vcs/backends/hg/repository.py @@ -83,7 +83,7 @@ class MercurialRepository(BaseRepository # NOTE(marcink): since python3 hgsubversion is deprecated. # From old installations we might still have this set enabled # we explicitly remove this now here to make sure it wont propagate further - if config.get('extensions', 'hgsubversion') is not None: + if config and config.get('extensions', 'hgsubversion') is not None: config.drop_option('extensions', 'hgsubversion') self.with_wire = with_wire or {"cache": False} # default should not use cache