Skip to content

Commit c90f484

Browse files
committed
add missing mapper for NoSuchNamespaceError in rest catalog create table
1 parent 0014058 commit c90f484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyiceberg/catalog/rest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def _create_table(
505505
try:
506506
response.raise_for_status()
507507
except HTTPError as exc:
508-
_handle_non_200_response(exc, {409: TableAlreadyExistsError})
508+
_handle_non_200_response(exc, {409: TableAlreadyExistsError, 404: NoSuchNamespaceError})
509509
return TableResponse.model_validate_json(response.text)
510510

511511
@retry(**_RETRY_ARGS)

0 commit comments

Comments
 (0)