Loading services/TS29222_CAPIF_Events_API/capif_events/core/events_apis.py +8 −8 Original line number Diff line number Diff line Loading @@ -56,8 +56,8 @@ class EventSubscriptionsOperations(Resource): if event_subscription.supported_features is None: return bad_request_error( detail="supportedFeatures must be present in this request", cause="supportedFeatures missed", detail="supportedFeatures not present in request", cause="supportedFeatures not present", invalid_params=[{"param": "supportedFeatures", "reason": "not defined"}] ) Loading Loading @@ -132,12 +132,12 @@ class EventSubscriptionsOperations(Resource): current_app.logger.debug("Updating event subscription") # if event_subscription.supported_features is None: # return bad_request_error( # detail="supportedFeatures must be present in this request", # cause="supportedFeatures missed", # invalid_params=[{"param": "supportedFeatures", "reason": "not defined"}] # ) if event_subscription.supported_features is None: return bad_request_error( detail="supportedFeatures not present in request", cause="supportedFeatures not present", invalid_params=[{"param": "supportedFeatures", "reason": "not defined"}] ) result = self.__check_subscriber_id(subscriber_id) Loading Loading
services/TS29222_CAPIF_Events_API/capif_events/core/events_apis.py +8 −8 Original line number Diff line number Diff line Loading @@ -56,8 +56,8 @@ class EventSubscriptionsOperations(Resource): if event_subscription.supported_features is None: return bad_request_error( detail="supportedFeatures must be present in this request", cause="supportedFeatures missed", detail="supportedFeatures not present in request", cause="supportedFeatures not present", invalid_params=[{"param": "supportedFeatures", "reason": "not defined"}] ) Loading Loading @@ -132,12 +132,12 @@ class EventSubscriptionsOperations(Resource): current_app.logger.debug("Updating event subscription") # if event_subscription.supported_features is None: # return bad_request_error( # detail="supportedFeatures must be present in this request", # cause="supportedFeatures missed", # invalid_params=[{"param": "supportedFeatures", "reason": "not defined"}] # ) if event_subscription.supported_features is None: return bad_request_error( detail="supportedFeatures not present in request", cause="supportedFeatures not present", invalid_params=[{"param": "supportedFeatures", "reason": "not defined"}] ) result = self.__check_subscriber_id(subscriber_id) Loading