Skip to content
Snippets Groups Projects
Commit 3b9c2b4a authored by Benjamin Schubert's avatar Benjamin Schubert
Browse files

fixup! Eagerly check for circular dependencies

parent 0c5c450e
No related branches found
No related tags found
Loading
......@@ -136,7 +136,7 @@ class LoadElement():
# Raises:
# (LoadError): In case there was a circular dependency
#
def _ensure_no_circular_deps(self):
def ensure_no_circular_deps(self):
if self._node_id in self._dep_cache:
self._find_circular_deps(set(), set(), [])
......
......@@ -261,7 +261,7 @@ class Loader():
deps_names = [dep.name for dep in dependencies]
self._warn_invalid_elements(deps_names)
element._ensure_no_circular_deps()
element.ensure_no_circular_deps()
return element
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment