Skip to content

Commit 675bb3d

Browse files
committed
[terminology] small fix
1 parent e930096 commit 675bb3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

odml/terminology.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def _find_match(self, type_matches, pattern, relaxed=False):
220220
def _get_section_by_type(self, section_type, pattern=None, relaxed=False, find_all=False):
221221
if self.empty() or len(self.types) == 0:
222222
self.type_list()
223-
matches = None
223+
matches = []
224224
if section_type in self.types:
225225
matches = self._find_match(self.types[section_type], pattern, relaxed)
226226
if len(matches) > 0:

0 commit comments

Comments
 (0)