Skip to content

Commit a92ed39

Browse files
committed
Leave it like the old code
1 parent 2aef4be commit a92ed39

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

readthedocs/core/resolver.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,10 @@ def _get_canonical_project(self, project, projects=None):
218218
# Track what projects have already been traversed to avoid infinite
219219
# recursion. We can't determine a root project well here, so you get
220220
# what you get if you have configured your project in a strange manner
221-
projects = projects or set()
222-
projects.add(project)
221+
if projects is None:
222+
projects = {project}
223+
else:
224+
projects.add(project)
223225

224226
next_project = None
225227
if project.main_language_project:

0 commit comments

Comments
 (0)