more explicit error messages during common import errors

This commit is contained in:
Romain Bignon 2013-01-14 21:28:47 +01:00
commit 535d6efc47
8 changed files with 42 additions and 8 deletions

View file

@ -20,7 +20,11 @@
from __future__ import with_statement
from dateutil import tz
try:
from dateutil import tz
except ImportError:
raise ImportError('Please install python-dateutil')
from logging import warning
from time import time, sleep
from tempfile import gettempdir