summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
eb19fb2)
In that case we want to pass by returning an empty dict,
as docstring already describes.
Before this, the code failed when checking for included version.
Change-Id: Ia0d6b81a64ad0e7027ac7daf15c72ace1f6982ce
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
for item in reversed(msg_obj):
if not isinstance(item, dict):
continue
for item in reversed(msg_obj):
if not isinstance(item, dict):
continue
- options = item.get(u"options", None)
- if options is not None:
+ options = item.get(u"options", dict())
+ if not options:
break
if version is None or version.startswith(u"0."):
options[u"version"] = version
break
if version is None or version.startswith(u"0."):
options[u"version"] = version