diff --git a/TES/tes/apiendpoints.py b/TES/tes/apiendpoints.py index ce4e648e12b6cc3da1c033add9e663062c37366a..7d0ccb66453da6e3498f2af7ad0fccca40d746d5 100644 --- a/TES/tes/apiendpoints.py +++ b/TES/tes/apiendpoints.py @@ -64,7 +64,10 @@ class SSHAgent(Resource): sshsess.add_keycert(key=data['key'],cert=data['cert']) sshsess.refresh() return "OK" - except: + except Exception e: + import traceback + logger.error(e) + logger.error(traceback.format_exc()) logger.error('failed to add ssh key to the agent') flask_restful.abort(500,message="failed to add the ssh key to the agent")