caught attribute error while import exception