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:
Laurent Bachelier 2014-10-11 11:50:38 +02:00
commit 55d37401bc

View file

@ -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):