avoid 'During handling of the above exception…' on failed import

use Python 2-compatibly syntax for `raise Exception from context`