Catch cannot_perform_query_exc_t errors in val.cc
Merge branch 'mlucy_2576' into next