Get the older error if the new one does not exsist

Fixes: #2
pull/7/head
Micke Nordin 6 months ago
parent d88ad607c9
commit 287d9a6c2d

@ -14,9 +14,12 @@ from urllib.parse import urlparse
import argcomplete
import requests
import yaml
from requests.exceptions import JSONDecodeError as RequestsJSONDecodeError
from requests.models import HTTPBasicAuth
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

Loading…
Cancel
Save