summaryrefslogtreecommitdiff
path: root/lulua/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'lulua/util.py')
-rw-r--r--lulua/util.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lulua/util.py b/lulua/util.py
index 1e2156d..f4ad76c 100644
--- a/lulua/util.py
+++ b/lulua/util.py
@@ -60,11 +60,13 @@ class YamlLoader:
except yaml.reader.ReaderError:
pass
- raise KeyError
+ raise KeyError (k)
def __iter__ (self):
for res in pkg_resources.resource_listdir (__package__, self.defaultDir):
- yield self.__getitem__ (res, onlyRes=True)
+ # ignore dotfiles, only include yaml
+ if not res.startswith ('.') and res.endswith ('.yaml'):
+ yield self.__getitem__ (res, onlyRes=True)
def displayText (text):
""" Convert text into a string that is always renderable without combining,