Exception handling, OAI fetch; fixed MODS key error (#7524)

Also changed variable name "set" (a Python reserved word) to "set_id"
in oai.oaiservice.list_records()