Limit except clause to UnknownRegistryClass.