Skip to content

Commit

Permalink
Stop reraising error
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Tom committed Jul 18, 2023
1 parent 6aa8c86 commit bdcb939
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 bdcb939

Please sign in to comment.