Skip to content

Commit 5ea2876

Browse files
author
Nick Diego Yamane
committed
parser: Work around a bug in bashlex parser
- Reported and patch sent upstream: idank/bashlex#32 idank/bashlex#33 - Revert this patch once it's merged Signed-off-by: Nick Diego Yamane <nick@diegoyam.com>
1 parent 2f63cf9 commit 5ea2876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiledb/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def skip_line(cmd, reason):
101101
commands = []
102102
try:
103103
commands = CommandProcessor.process(line, working_dir)
104-
except (bashlex.errors.ParsingError, subprocess.CalledProcessError, NotImplementedError) as err:
104+
except Exception as err:
105105
msg = 'Failed to parse build command [Details: ({}) {}]'.format(type(err), str(err))
106106
skip_line(line, msg)
107107
continue

0 commit comments

Comments
 (0)