summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-04-01 14:09:09 -0400
committerDrew DeVault <sir@cmpwn.com>2019-04-01 14:09:09 -0400
commitd280a6173ca645ae1576fee98499ceea8a94d146 (patch)
tree07677fd76b53054301cdab5744112d9e79ae5ab1
parentaf162609288a39b7acd6e6e008d2bba5914415aa (diff)
Ignore additional editorconfig errors
-rw-r--r--gitsrht/editorconfig.py9
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)