Catch DoesNotExist, KeyError exceptions