fix: harden task2 preprocessing and vector guards
This commit is contained in:
@@ -448,10 +448,10 @@ def check_cmd(
|
||||
raise typer.Exit(code=1) from None
|
||||
_render_schema_machine_error(error, cfg)
|
||||
except Exception:
|
||||
logger.exception("Schema check failed")
|
||||
if json_output:
|
||||
_schema_json({"status": "failed", "code": "schema_check_failed"})
|
||||
raise typer.Exit(code=1) from None
|
||||
logger.exception("Schema check failed")
|
||||
typer.secho("ERRORE: impossibile verificare le annotazioni.", fg=typer.colors.RED, err=True)
|
||||
raise typer.Exit(code=1) from None
|
||||
if json_output:
|
||||
@@ -531,10 +531,10 @@ def suggest_fks_cmd(
|
||||
raise typer.Exit(code=1) from None
|
||||
_render_schema_machine_error(error, cfg)
|
||||
except Exception:
|
||||
logger.exception("Schema suggestion failed")
|
||||
if json_output:
|
||||
_schema_json({"status": "failed", "code": "schema_suggestion_failed"})
|
||||
raise typer.Exit(code=1) from None
|
||||
logger.exception("Schema suggestion failed")
|
||||
typer.secho("ERRORE: impossibile elaborare il catalogo.", fg=typer.colors.RED, err=True)
|
||||
raise typer.Exit(code=1) from None
|
||||
if json_output:
|
||||
|
||||
Reference in New Issue
Block a user