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 d182d9e commit 3a62cf3Copy full SHA for 3a62cf3
app/core/xray.py
@@ -20,17 +20,8 @@ def __init__(
20
):
21
"""Initialize the XRay config."""
22
if isinstance(config, str):
23
- try:
24
- # considering string as json
25
- config = commentjson.loads(config)
26
- except (json.JSONDecodeError, ValueError):
27
- # considering string as file path
28
- with open(config, "r") as file:
29
- config = commentjson.loads(file.read())
30
-
31
- if isinstance(config, PosixPath):
32
33
+ # considering string as json
+ config = commentjson.loads(config)
34
35
if isinstance(config, dict):
36
config = deepcopy(config)
0 commit comments