We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4003232 commit 65427baCopy full SHA for 65427ba
src/instrumentman/terminal/app.py
@@ -244,8 +244,15 @@ async def get_suggestion(self, value: str) -> str | None:
244
245
separator = "." if path != "" else ""
246
247
- suggestion = process.extractOne(
248
- partial, suggest, scorer=fuzz.partial_ratio)[0]
+ extracted = process.extractOne(
+ partial,
249
+ suggest,
250
+ scorer=fuzz.partial_ratio
251
+ )
252
+ if extracted is None:
253
+ return None
254
+
255
+ suggestion = extracted[0]
256
257
return f"{path}{separator}{suggestion}"
258
0 commit comments