|
|
@ -14,9 +14,12 @@ from urllib.parse import urlparse
|
|
|
|
import argcomplete
|
|
|
|
import argcomplete
|
|
|
|
import requests
|
|
|
|
import requests
|
|
|
|
import yaml
|
|
|
|
import yaml
|
|
|
|
from requests.exceptions import JSONDecodeError as RequestsJSONDecodeError
|
|
|
|
|
|
|
|
from requests.models import HTTPBasicAuth
|
|
|
|
from requests.models import HTTPBasicAuth
|
|
|
|
from simplejson.errors import JSONDecodeError as SimplejsonJSONDecodeError
|
|
|
|
from simplejson.errors import JSONDecodeError as SimplejsonJSONDecodeError
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
from requests.exceptions import JSONDecodeError as RequestsJSONDecodeError
|
|
|
|
|
|
|
|
except ImportError:
|
|
|
|
|
|
|
|
from requests.exceptions import InvalidJSONError as RequestsJSONDecodeError
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Helper functions
|
|
|
|
# Helper functions
|
|
|
|