~edwargix/git.sr.ht

d280a6173ca645ae1576fee98499ceea8a94d146 — Drew DeVault 6 years ago af16260
Ignore additional editorconfig errors
1 files changed, 6 insertions(+), 3 deletions(-)

M gitsrht/editorconfig.py
M gitsrht/editorconfig.py => gitsrht/editorconfig.py +6 -3
@@ 4,9 4,12 @@ import re

class EditorConfig:
    def __init__(self, repo, tree, path):
        self.repo = repo
        self.tree = tree
        self._config = self._config_for(path)
        try:
            self.repo = repo
            self.tree = tree
            self._config = self._config_for(path)
        except:
            self._config = None

    def _config_for(self, path):
        base = os.path.dirname(path)