Commit 3aa55e32 authored by Michal Čihař's avatar Michal Čihař

Use autodetection for component validation

Fixes rb#507
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 2319fbfd
......@@ -1185,7 +1185,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
dir_path = self.get_path()
for match in matches:
try:
parsed = self.file_format_cls.load(
parsed = self.file_format_cls.parse(
os.path.join(dir_path, match),
)
if not self.file_format_cls.is_valid(parsed):
......
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