Skip to content

Commit

Permalink
Merge pull request #1045 from dan1elt0m/fix-schema2
Browse files Browse the repository at this point in the history
Stop reraising error
  • Loading branch information
dan1elt0m authored Jul 18, 2023
2 parents 6aa8c86 + bdcb939 commit 6171df7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ def get_schema_by_name(catalog_name: str, schema_name: str, base_url: str) -> Op
try:
return get_request(f"{base_url}/{catalog_name}.{schema_name}")
except requests.exceptions.HTTPError as e:
if e.response.status_code == 404:
return None
raise
logger.info("Schema not found, returning None")
return None


def create_or_update_schema(properties: SchemaProperties) -> SchemaResponse:
Expand Down

0 comments on commit 6171df7

Please sign in to comment.