fixed get_or_create exception handling.