societegenerale: PIL is a global requirement
And no other module or component has an ImportError message for PIL. It is also outdated, as users might install pillow instead.
This commit is contained in:
parent
e32005bf26
commit
55d37401bc
1 changed files with 3 additions and 5 deletions
|
|
@ -18,12 +18,10 @@
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import hashlib
|
import hashlib
|
||||||
from weboob.tools.log import getLogger
|
|
||||||
|
|
||||||
try:
|
from PIL import Image
|
||||||
from PIL import Image
|
|
||||||
except ImportError:
|
from weboob.tools.log import getLogger
|
||||||
raise ImportError('Please install python-imaging')
|
|
||||||
|
|
||||||
|
|
||||||
class TileError(Exception):
|
class TileError(Exception):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue