Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions libyang/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,11 @@ def get_module_data(
Tuple of format string and YANG (sub)module schema
"""
if self._module_data_clb is None:
return "", None
fmt_str, module_data = self._module_data_clb(
mod_name, mod_rev, submod_name, submod_rev
)
if module_data is None:
return fmt_str, None
return None
ret = self._module_data_clb(mod_name, mod_rev, submod_name, submod_rev)
if ret is None:
return None
fmt_str, module_data = ret
module_data_c = str2c(module_data)
self._cdata_modules.append(module_data_c)
return fmt_str, module_data_c
Expand Down
Loading