Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit afeb195

Browse files
plinssfrivoal
authored andcommitted
Add exception handling to css build script when parsing test metadata
1 parent 045e538 commit afeb195

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

css/tools/build.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,12 @@ def gatherTests(self, dir):
130130
if not source.isTest():
131131
continue
132132

133-
metaData = source.getMetadata(True)
133+
try:
134+
metaData = source.getMetadata(True)
135+
except Exception as error:
136+
self.ui.warn("Exception parsing '", filePath, "': ", error, "\n")
137+
continue
138+
134139
if not metaData:
135140
if (source.errors):
136141
self.ui.warn("Error parsing '", filePath, "': ", ' '.join(source.errors), "\n")

0 commit comments

Comments
 (0)