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
if not matching:
self._reported[api_name] = crc
self.log_and_raise(
- f"No active collection contains API {api_name!r} with CRC {crc!r}"
+ f"No active collection has API {api_name!r} with CRC {crc!r}"
)
options = self._options[api_name]
options.pop(u"vat_help", None)