Skip to content

Commit 2c9b177

Browse files
committed
[section] safety net if loading from terminology fails
1 parent 71e0b4b commit 2c9b177

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

odml/section.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ def include(self, new_value):
7676
return
7777

7878
term = terminology.load(url)
79+
if not term:
80+
return
7981
new_section = term.get_section_by_path(path) if path is not None else term.sections[0]
8082

8183
if self._include is not None:

0 commit comments

Comments
 (0)