Skip to content

Commit b40378b

Browse files
authored
Remove NoSuchNamespaceError on namespace creation (#726)
1 parent a268e5b commit b40378b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyiceberg/catalog/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def create_namespace(self, namespace: Union[str, Identifier], properties: Proper
715715
try:
716716
response.raise_for_status()
717717
except HTTPError as exc:
718-
self._handle_non_200_response(exc, {404: NoSuchNamespaceError, 409: NamespaceAlreadyExistsError})
718+
self._handle_non_200_response(exc, {409: NamespaceAlreadyExistsError})
719719

720720
@retry(**_RETRY_ARGS)
721721
def drop_namespace(self, namespace: Union[str, Identifier]) -> None:

0 commit comments

Comments
 (0)