Add missing import for exceptions

This is not part of the validation and was broken during passes
splitting.
Merge pull request #257 from joker-eph/missing_import

Add missing import for exceptions