Get_dep_level detects potential loop issues in designs that are OK: demote the…

Get_dep_level detects potential loop issues in designs that are OK: demote the critical exception to a warning log message per offending file
parent 695b031e
......@@ -207,5 +207,5 @@ class DepFile(File):
# recurse, to find the largest number of levels below.
self.dep_level = 1 + max([dep.get_dep_level() for dep in self.depends_on]);
elif self.dep_level < 0:
raise Exception("Probably run into a circular reference of file dependencies. It appears %d depends on itself, indirectly via atleast one other file." % self.filename())
logging.warning("Probably run into a circular reference of file dependencies. It appears %s depends on itself, indirectly via atleast one other file." % self.file_path)
return self.dep_level
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment