Browse Source

Fix type error

pull/176/head
Louis 9 years ago
parent
commit
6fce49ae1b
  1. 2
      patacrep/build.py

2
patacrep/build.py

@ -129,7 +129,7 @@ class Songbook:
def iter_errors(self): def iter_errors(self):
"""Iterate over errors of book and book content.""" """Iterate over errors of book and book content."""
yield from self._errors yield from self._errors
contentlist = self._config.get('content', list()) contentlist = self._config.get('content', content.ContentList())
yield from contentlist.iter_errors() yield from contentlist.iter_errors()
for item in contentlist: for item in contentlist:
if not hasattr(item, "iter_errors"): if not hasattr(item, "iter_errors"):

Loading…
Cancel
Save