Exception handling of ami dependency check