Code Review
/
ric-plt
/
a1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to SDL 2.0.2
[ric-plt/a1.git]
/
a1
/
controller.py
diff --git
a/a1/controller.py
b/a1/controller.py
index
f2fdfea
..
2cb9283
100644
(file)
--- 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.
# ==================================================================================
# 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
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
"""
# 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
# Healthcheck