def get(self, label, build_info): try: return products.getProductListings(label, build_info) except Exception: utils.log_remote_call_error('API call getProductListings() failed', label, build_info) raise
def getProductInfo(*a, **kw): try: return products.getProductInfo(*a, **kw) except Exception: utils.log_remote_call_error('XMLRPC call getProductInfo() failed', *a, **kw) raise Fault(1, 'An unexpected error has occurred.')
def get(self, label, module_build_nvr): try: return products.getModuleProductListings(label, module_build_nvr) except products.ProductListingsNotFoundError as ex: raise NotFound(str(ex)) except Exception: utils.log_remote_call_error('API call getModuleProductListings() failed', label, module_build_nvr) raise
def get(self, label): try: versions, variants = products.getProductInfo(label) except Exception: utils.log_remote_call_error('API call getProductInfo() failed', label) raise return [versions, variants]
def get(self, label): try: versions, variants = products.getProductInfo(label) except products.ProductListingsNotFoundError as ex: raise NotFound(str(ex)) except Exception: utils.log_remote_call_error('API call getProductInfo() failed', label) raise return [versions, variants]
def get(self, label, build_info): try: return products.getProductListings(label, build_info) except products.ProductListingsNotFoundError as ex: raise NotFound(str(ex)) except Exception: utils.log_remote_call_error("API call getProductListings() failed", label, build_info) raise
def get(self): try: return products.getProductLabels() except Exception: utils.log_remote_call_error("API call getProductLabels() failed") raise