Skip to content

Commit

Permalink
Use click Exit instead of sys exit (KEEP)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Jan 3, 2024
1 parent ee3b929 commit e7bb6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/felis/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ def load_tap(
schema_obj = {"@context": DEFAULT_CONTEXT, "@graph": top_level_object}
else:
logger.error("Schema object not of recognizable type")
sys.exit(1)
raise click.exceptions.Exit(1)

normalized = _normalize(schema_obj)
if len(normalized["@graph"]) > 1 and (schema_name or catalog_name):
logger.error("--schema-name and --catalog-name incompatible with multiple schemas")
sys.exit(1)
raise click.exceptions.Exit(1)

# Force normalized["@graph"] to a list, which is what happens when there's
# multiple schemas
Expand Down

0 comments on commit e7bb6b1

Please sign in to comment.