def parse_body_and_errors(self):
        js = super(BuddyNSResponse, self).parse_body()
        if 'detail' in js:
            self.errors.append(js)
        else:
            self.objects.append(js)

        return self.errors, self.objects
dataset/ETHPy150Open apache/libcloud/libcloud/common/buddyns.py/BuddyNSResponse.parse_body_and_errors/original