Skip to content

Commit

Permalink
fix: didn't handle silly error
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNuclearNexus committed Sep 26, 2024
1 parent 78a79fa commit b7a9a68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion language_server/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ def create_context(config: ProjectConfig, config_path: Path) -> Context:
mc.database.enqueue(file_instance)

for location, file in pack.all():
PATH_TO_RESOURCE[str(file.ensure_source_path())] = (location, file)
try:
PATH_TO_RESOURCE[str(file.ensure_source_path())] = (location, file)
except:
continue

return ctx
return None
Expand Down

0 comments on commit b7a9a68

Please sign in to comment.