catch exception if no match