Skip to content

Commit e1dbc13

Browse files
committed
Update cli
1 parent dac6936 commit e1dbc13

File tree

1 file changed

+4
-4
lines changed
  • text_2_sql/text_2_sql_core/src/text_2_sql_core/data_dictionary

1 file changed

+4
-4
lines changed

text_2_sql/text_2_sql_core/src/text_2_sql_core/data_dictionary/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ def create(
9898
**kwargs,
9999
)
100100
else:
101-
raise NotImplementedError(
102-
f"Data Dictionary Creator for {engine.value} is not implemented."
103-
)
101+
rich_print("Text2SQL Data Dictionary Creator Failed ❌")
102+
rich_print(f"Database Engine {engine.value} is not supported.")
103+
104+
raise typer.Exit(code=1)
104105
except ImportError:
105106
detailed_error = f"""Failed to import {
106107
engine.value} Data Dictionary Creator. Check you have installed the optional dependencies for this database engine."""
@@ -112,7 +113,6 @@ def create(
112113
try:
113114
asyncio.run(data_dictionary_creator.create_data_dictionary())
114115
except Exception as e:
115-
raise e
116116
logging.error(e)
117117
rich_print("Text2SQL Data Dictionary Creator Failed ❌")
118118

0 commit comments

Comments
 (0)