forked from shaba/openuds
Fixing up thin thin plugin
This commit is contained in:
parent
c566ec47a2
commit
004acbab9a
@ -39,9 +39,9 @@ import json
|
|||||||
import six
|
import six
|
||||||
import osDetector
|
import osDetector
|
||||||
|
|
||||||
|
|
||||||
from .log import logger
|
from .log import logger
|
||||||
|
|
||||||
|
|
||||||
class RetryException(Exception):
|
class RetryException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ class RestRequest(object):
|
|||||||
logger.debug('Requesting {}'.format(url))
|
logger.debug('Requesting {}'.format(url))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
r = requests.get(url, headers={'Content-type': 'application/json', 'User-Agent': osDetector.getOs() + " - UDS Connector " + VERSION })
|
r = requests.get(url, headers={'Content-type': 'application/json', 'User-Agent': osDetector.getOs() + " - UDS Connector " + VERSION }, verify=False)
|
||||||
except requests.exceptions.ConnectionError as e:
|
except requests.exceptions.ConnectionError as e:
|
||||||
raise Exception('Error connecting to UDS Server at {}'.format(self.restApiUrl[0:-11]))
|
raise Exception('Error connecting to UDS Server at {}'.format(self.restApiUrl[0:-11]))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user