Sonar corrections. Unit tests and code coverage added
[sim/a1-interface.git] / near-rt-ric-simulator / src / STD_1.1.3 / callBack.py
index 728c8da..0e8e416 100644 (file)
@@ -18,7 +18,7 @@
 import json
 from flask import Flask, request, Response
 
-app = Flask(__name__)
+app = Flask(__name__) #NOSONAR
 
 #Check alive function
 @app.route('/', methods=['GET'])
@@ -33,7 +33,7 @@ def statustest():
   try:
     data = request.data
     data = json.loads(data)
-  except:
+  except Exception:
     return Response("The status data is corrupt or missing.", 400, mimetype='text/plain')
 
   return Response(json.dumps(data), 200, mimetype='application/json')