Fix linter errors in CLI and tests
This commit is contained in:
@@ -255,7 +255,7 @@ def export_report_cmd(
|
||||
"[red]Error:[/red] Report generation requires additional dependencies.\n"
|
||||
"Install with: [cyan]pip install py_dvt_ate[reports][/cyan]"
|
||||
)
|
||||
raise typer.Exit(1)
|
||||
raise typer.Exit(1) from None
|
||||
|
||||
# Load config
|
||||
if config_file is None:
|
||||
@@ -295,7 +295,7 @@ def export_report_cmd(
|
||||
full_run_id = UUID(run_id)
|
||||
except ValueError:
|
||||
console.print(f"[red]Error:[/red] Invalid run ID: '{run_id}'")
|
||||
raise typer.Exit(1)
|
||||
raise typer.Exit(1) from None
|
||||
|
||||
# Create report config
|
||||
report_config = ReportConfig(
|
||||
@@ -324,7 +324,7 @@ def export_report_cmd(
|
||||
raise
|
||||
except Exception as e:
|
||||
console.print(f"[red]Error generating report:[/red] {e}")
|
||||
raise typer.Exit(1)
|
||||
raise typer.Exit(1) from None
|
||||
finally:
|
||||
repo.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user