This snippet of code exists in translate() methods of MavenMapping and very soon NuGetMapping(since it was tested in MavenMapping).
if not isinstance(d, dict):
self.log.warning("Skipping ill-formed XML content: %s", content)
return NoneNeed to write a test for when such a log entry may occur.