summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/handlers/result_handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/opnfv_testapi/handlers/result_handlers.py')
-rw-r--r--testapi/opnfv_testapi/handlers/result_handlers.py2
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)