This is an automated email from the ASF dual-hosted git repository.

honahx pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git


The following commit(s) were added to refs/heads/main by this push:
     new b40378b6 Remove NoSuchNamespaceError on namespace creation (#726)
b40378b6 is described below

commit b40378b62410a249223a20bade27371695a8531c
Author: Andre Luis Anastacio <[email protected]>
AuthorDate: Wed May 15 04:15:34 2024 -0300

    Remove NoSuchNamespaceError on namespace creation (#726)
---
 pyiceberg/catalog/rest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyiceberg/catalog/rest.py b/pyiceberg/catalog/rest.py
index 565d8091..7259f9fa 100644
--- a/pyiceberg/catalog/rest.py
+++ b/pyiceberg/catalog/rest.py
@@ -715,7 +715,7 @@ class RestCatalog(Catalog):
         try:
             response.raise_for_status()
         except HTTPError as exc:
-            self._handle_non_200_response(exc, {404: NoSuchNamespaceError, 
409: NamespaceAlreadyExistsError})
+            self._handle_non_200_response(exc, {409: 
NamespaceAlreadyExistsError})
 
     @retry(**_RETRY_ARGS)
     def drop_namespace(self, namespace: Union[str, Identifier]) -> None:

Reply via email to