Skip to content

Commit 59bfb35

Browse files
tpellissierclaude
andcommitted
Simplify TypeError message for bare string select param
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 18f2974 commit 59bfb35

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/PowerPlatform/Dataverse/data/_odata.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,10 +1458,7 @@ def _list_tables(
14581458
combined_filter = base_filter
14591459
params: Dict[str, str] = {"$filter": combined_filter}
14601460
if select is not None and isinstance(select, str):
1461-
raise TypeError(
1462-
"select must be a list of strings, not a single str; "
1463-
"did you mean ['" + select + "'] instead of '" + select + "'?"
1464-
)
1461+
raise TypeError("select must be a list of property names, not a bare string")
14651462
if select:
14661463
params["$select"] = ",".join(select)
14671464
r = self._request("get", url, params=params)

0 commit comments

Comments
 (0)