Skip to content

Commit

Permalink
Add fallback for 'ujson' import
Browse files Browse the repository at this point in the history
  • Loading branch information
Савеленко Алексей Николаевич committed Mar 25, 2024
1 parent 433c6a6 commit 0c70fc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pylsp/python_lsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
from functools import partial
from typing import Any, Dict, List

import ujson as json
try:
import ujson as json
except Exception:
import json

from pylsp_jsonrpc.dispatchers import MethodDispatcher
from pylsp_jsonrpc.endpoint import Endpoint
from pylsp_jsonrpc.streams import JsonRpcStreamReader, JsonRpcStreamWriter
Expand Down

0 comments on commit 0c70fc1

Please sign in to comment.