Telemetry: not collect Sphinx data if there is no `conf.py`
Avoid failing the collection of data if the project does not define a `conf.py`
or doesn't even have one.
@@ -112,6 +112,10 @@ class BuildDataCollector:
if self._get_doctool_name() != "sphinx":
return data
+ # The project does not define a `conf.py` or does not have one
+ if not self.config.sphinx.configuration:
+ return data
+
conf_py_dir = os.path.join(
self.checkout_path,
os.path.dirname(self.config.sphinx.configuration),
