X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=a1%2Fcontroller.py;h=2cb92837ae945d4b441e3e751c5c249257b0fa7e;hb=0e3bc64f93a316e49bbdeb047e7592840207231d;hp=f2fdfea23e1e466404d08a2d4ae033d071b6d052;hpb=ccb4a69e473cab6db7e8d52a04f9b4922528e24f;p=ric-plt%2Fa1.git diff --git a/a1/controller.py b/a1/controller.py index f2fdfea..2cb9283 100644 --- a/a1/controller.py +++ b/a1/controller.py @@ -17,7 +17,6 @@ Main a1 controller # See the License for the specific language governing permissions and # limitations under the License. # ================================================================================== -from flask import Response from jsonschema import validate from jsonschema.exceptions import ValidationError import connexion @@ -48,10 +47,8 @@ def _try_func_return(func): """ # mdc_logger.exception(exc) # waiting for https://jira.o-ran-sc.org/browse/RIC-39 return "", 503 - except BaseException: - # catch all, should never happen... - # mdc_logger.exception(exc) # waiting for https://jira.o-ran-sc.org/browse/RIC-39 - return Response(status=500) + + # let other types of unexpected exceptions blow up and log # Healthcheck