Skip to content

Commit 2f2982f

Browse files
committedApr 26, 2014
Fallback to external httplib2 when internal is not available
1 parent 62ba133 commit 2f2982f

File tree

1 file changed

+5
-1
lines changed
  • python/plugins/processing/algs/admintools/geoserver

1 file changed

+5
-1
lines changed
 

‎python/plugins/processing/algs/admintools/geoserver/catalog.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@
4141
UnsavedLayerGroup
4242
from workspace import workspace_from_index, \
4343
Workspace
44-
from processing.algs.admintools import httplib2
44+
try:
45+
from processing.algs.admintools import httplib2
46+
except ImportError:
47+
# If compiled without internal httplib2: Load external
48+
import httplib2
4549

4650

4751
logger = logging.getLogger('gsconfig.catalog')

0 commit comments

Comments
 (0)
Please sign in to comment.