Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit e036fd2

Browse files
committed
allow cycles silently
1 parent 3feee6e commit e036fd2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

unbundle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ def resolve_includes(bundle_name, bundle_path, content, bundles=False, path=set(
3131
elif line.startswith("include("):
3232
inc_bundle = line[line.find("(")+1:line.find(")")]
3333
if inc_bundle in path:
34-
print(f"Error cycle detected: {inc_bundle} is part of a loop in bundles {path}.")
35-
return False
34+
# print(f"Error cycle detected: {inc_bundle} is part of a loop in bundles {path}.")
35+
# return False
36+
continue
3637
success = resolve_includes(inc_bundle, bundle_path, content, bundles, path)
3738
if not success:
3839
return False

0 commit comments

Comments
 (0)