diff options
Diffstat (limited to 'gitsrht/editorconfig.py')
-rw-r--r-- | gitsrht/editorconfig.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gitsrht/editorconfig.py b/gitsrht/editorconfig.py index 9391657..0be8049 100644 --- a/gitsrht/editorconfig.py +++ b/gitsrht/editorconfig.py @@ -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) |