Skip to content

Commit 95e5ab0

Browse files
authored
fix: import bug (#493)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
1 parent 13765da commit 95e5ab0

File tree

1 file changed

+2
-2
lines changed
  • src/codegen/cli/commands/lsp

1 file changed

+2
-2
lines changed

src/codegen/cli/commands/lsp/lsp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
def lsp_command():
1010
try:
1111
from codegen.extensions.lsp.lsp import server
12-
except ImportError:
13-
logger.exception("LSP is not installed. Please install it with `uv tool install codegen[lsp]`")
12+
except (ImportError, ModuleNotFoundError):
13+
logger.exception("LSP is not installed. Please install it with `uv tool install codegen[lsp] --prerelease=allow`")
1414
return
1515
logging.basicConfig(level=logging.INFO)
1616
server.start_io()

0 commit comments

Comments
 (0)