Fix p_key to catch exceptions from get_source_of_current_name