Commit 6ee1f91
DevForge Engineer
fix(cli): replace undefined 'typer' references with 'click' in MCP error handler
The mcp() command referenced typer.echo and typer.Exit but never
imported typer. This caused a NameError when click-to-mcp was not
installed, masking the helpful install instruction. Since the
project uses Click (not Typer), switched to click.echo and click.Exit.
Fixes:
- F821: Undefined name 'typer' → use click.echo / click.Exit
- B904: raise from None to suppress exception chain
- I001: auto-fixed import sort in _render_costs1 parent 5164fc7 commit 6ee1f91
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
| 115 | + | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | 147 | | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments