Add exception for no directory

Add exception for no directory