From 55d37401bcf29023d316e6da08eb88eec4e43eb7 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Sat, 11 Oct 2014 11:50:38 +0200 Subject: [PATCH] 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. --- modules/societegenerale/captcha.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/societegenerale/captcha.py b/modules/societegenerale/captcha.py index ef3f5833..e6410c0a 100644 --- a/modules/societegenerale/captcha.py +++ b/modules/societegenerale/captcha.py @@ -18,12 +18,10 @@ # along with weboob. If not, see . import hashlib -from weboob.tools.log import getLogger -try: - from PIL import Image -except ImportError: - raise ImportError('Please install python-imaging') +from PIL import Image + +from weboob.tools.log import getLogger class TileError(Exception):