def raise_for_code(self): if any(self.__content['code'] == k for k in self.__error_codes): raise errors.StoreReviewError(self.__content)
def raise_for_code(self): if self.__content['code'] in self.__error_codes: raise errors.StoreReviewError(self.__content)