change uci_list_configs api for proper exception handling