Reworked NamespaceInfo.collect() to use fewer try/except blocks