simplify an exception handler now that module import is normalized