File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ class LazyFlow360Group(click.Group):
8282 def invoke (self , ctx ):
8383 try :
8484 return super ().invoke (ctx )
85- except click .ClickException :
85+ except ( click .ClickException , click . exceptions . Exit , click . Abort ) :
8686 raise
8787 except Exception as error : # pylint: disable=broad-except
8888 # Convert uncaught SDK auth failures into normal CLI errors.
Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ def test_asset_group_help_does_not_import_simulation_summary(monkeypatch):
100100 "flow360.cli.app" ,
101101 "flow360.cli.assets" ,
102102 "flow360.cli.simulation_summary" ,
103+ "flow360.exceptions" ,
103104 "flow360.component.simulation.simulation_params" ,
105+ "flow360_schema.exceptions" ,
106+ "flow360_schema.unit_system" ,
104107 )
105108
106109 from flow360 .cli import (
@@ -112,7 +115,10 @@ def test_asset_group_help_does_not_import_simulation_summary(monkeypatch):
112115 assert result .exit_code == 0
113116 assert "flow360.cli.assets" in sys .modules
114117 assert "flow360.cli.simulation_summary" not in sys .modules
118+ assert "flow360.exceptions" not in sys .modules
115119 assert "flow360.component.simulation.simulation_params" not in sys .modules
120+ assert "flow360_schema.exceptions" not in sys .modules
121+ assert "flow360_schema.unit_system" not in sys .modules
116122
117123
118124def test_public_namespace_configure_does_not_eagerly_import_cli_modules (monkeypatch ):
You can’t perform that action at this time.
0 commit comments