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 1541bf0 commit 85d7603Copy full SHA for 85d7603
readthedocs/doc_builder/python_environments.py
@@ -128,10 +128,11 @@ def is_obsolete(self):
128
return False
129
130
try:
131
- environment_conf = json.load(self.environment_json_path())
+ with open(self.environment_json_path(), 'r') as fpath:
132
+ environment_conf = json.load(fpath)
133
env_python_version = Version(environment_conf['python']['version'])
134
env_build_image = Version(environment_conf['build']['image'])
- except (TypeError, KeyError, json.decoder.JSONDecodeError):
135
+ except (TypeError, KeyError, ValueError):
136
137
138
# If the user define the Python version just as a major version
0 commit comments