Skip to content
Snippets Groups Projects
Commit 77d950c0 authored by Henning Glawe's avatar Henning Glawe
Browse files

add catchall for exceptions in streaming mode

parent c9b24f34
No related branches found
No related tags found
No related merge requests found
...@@ -1309,7 +1309,10 @@ def mainFunction(mainFileDescription, ...@@ -1309,7 +1309,10 @@ def mainFunction(mainFileDescription,
outFilejsonBackend = JsonParseEventsWriterBackend(metaInfoEnv, outFile) outFilejsonBackend = JsonParseEventsWriterBackend(metaInfoEnv, outFile)
# override superBackend for this parseFile # override superBackend for this parseFile
backend.superBackend = outFilejsonBackend backend.superBackend = outFilejsonBackend
parseFile(parserBuilder, toRead['mainFileUri'], toRead['mainFile'], backend, superContext) try:
parseFile(parserBuilder, toRead['mainFileUri'], toRead['mainFile'], backend, superContext)
except Exception as e:
logger.error(traceback.format_exc())
if outFile is not None: if outFile is not None:
# we had the comma already from last round # we had the comma already from last round
writeComma = False writeComma = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment