Issue-Id: AIMLFW-40
Change-Id: Ia7fcceb2d86c23901086fc638958e6ec252e6be2
Signed-off-by: josephthaliath <jo.thaliath@samsung.com>
import json
import requests
import validators
+from trainingmgr.common.exceptions_utls import TMException
def create_url_host_port(protocol, host, port, path=''):
"""
"""
url = protocol + '://' + host + ':' + port + '/' + path
if not validators.url(url):
- logger.debug('URL validation error: ',url)
- return None
+ raise TMException('URL validation error: '+ url)
return url
def data_extraction_start(training_config_obj, trainingjob_name, feature_list, query_filter,