summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorMatthew Harmsen <mharmsen@redhat.com>2017-06-22 12:50:21 -0600
committerMatthew Harmsen <mharmsen@redhat.com>2017-06-22 12:50:21 -0600
commit9d63a7a6b1abb42595b6a24296a39a79441ba8df (patch)
tree0785a9ee709582d1847f33a14d589781f47ffcf1 /base
parent31988eb90c0f24f13e9bdbb77a91778c7809ebb3 (diff)
downloadpki-9d63a7a6b1abb42595b6a24296a39a79441ba8df.tar.gz
pki-9d63a7a6b1abb42595b6a24296a39a79441ba8df.tar.xz
pki-9d63a7a6b1abb42595b6a24296a39a79441ba8df.zip
dogtagpki Pagure Issue #2745 - Platform Dependent Python Import
Diffstat (limited to 'base')
-rw-r--r--base/common/python/pki/client.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/common/python/pki/client.py b/base/common/python/pki/client.py
index 805d0fadb..e1a4d3f2e 100644
--- a/base/common/python/pki/client.py
+++ b/base/common/python/pki/client.py
@@ -25,7 +25,10 @@ import functools
import warnings
import requests
-from requests.packages.urllib3.exceptions import InsecureRequestWarning
+try:
+ from requests.packages.urllib3.exceptions import InsecureRequestWarning
+except ImportError:
+ from urllib3.exceptions import InsecureRequestWarning
def catch_insecure_warning(func):