diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2018-02-24 16:46:51 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2018-02-26 10:03:35 +0800 |
commit | e2bbce72ca32d3bfdde04149b9d702b0a82d3279 (patch) | |
tree | 1ef006183cefd9c6e16ae9fb9a46839d7f9fd2dd /testapi/opnfv_testapi/handlers | |
parent | e9285f3bb3f71840958e8967ba6409dc9b2d038a (diff) |
set debug=False to prevent useless tracebacks
Change-Id: Ide0e00e3aa6ee4a484fd9d1b7c9bc52b598267ea
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/handlers')
-rw-r--r-- | testapi/opnfv_testapi/handlers/result_handlers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/handlers/result_handlers.py b/testapi/opnfv_testapi/handlers/result_handlers.py index b0691cd..2d4280f 100644 --- a/testapi/opnfv_testapi/handlers/result_handlers.py +++ b/testapi/opnfv_testapi/handlers/result_handlers.py @@ -245,6 +245,8 @@ class ResultsUploadHandler(ResultsCLHandler): @raise 400: body/pod_name/project_name/case_name not provided """ logging.info('file upload') + if not self.request.files: + raises.NotFound(message.key_error('file')) fileinfo = self.request.files['file'][0] is_public = self.get_body_argument('public') logging.warning('public:%s', is_public) |