user-friendly error message when python-requests is not installed
This commit is contained in:
parent
9893a2da0b
commit
a4b7f5cdf1
1 changed files with 6 additions and 1 deletions
|
|
@ -20,7 +20,12 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from urlparse import urlparse, urljoin
|
from urlparse import urlparse, urljoin
|
||||||
import requests
|
|
||||||
|
try:
|
||||||
|
import requests
|
||||||
|
except ImportError:
|
||||||
|
raise ImportError('Please install python-requests >= 2.0')
|
||||||
|
|
||||||
|
|
||||||
from weboob.tools.log import getLogger
|
from weboob.tools.log import getLogger
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue