Skip to content

Commit

Permalink
parser: Work around a bug in bashlex parser
Browse files Browse the repository at this point in the history
- Reported and patch sent upstream:
  idank/bashlex#32
  idank/bashlex#33
- Revert this patch once it's merged

Signed-off-by: Nick Diego Yamane <[email protected]>
  • Loading branch information
Nick Diego Yamane committed Sep 6, 2018
1 parent 2f63cf9 commit 5ea2876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiledb/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def skip_line(cmd, reason):
commands = []
try:
commands = CommandProcessor.process(line, working_dir)
except (bashlex.errors.ParsingError, subprocess.CalledProcessError, NotImplementedError) as err:
except Exception as err:
msg = 'Failed to parse build command [Details: ({}) {}]'.format(type(err), str(err))
skip_line(line, msg)
continue
Expand Down

0 comments on commit 5ea2876

Please sign in to comment.