simonw / symbex

Find the Python code for specified symbols
Apache License 2.0
231 stars 6 forks source link

Handle Python parsing errors better #6

Closed simonw closed 1 year ago

simonw commented 1 year ago

Right now if any of the inputs to symbex include Python that cannot be parsed by the ast module the whole process crashes with a noisy error.

simonw commented 1 year ago

I think files with parse errors in are logged to stderr, maybe with a -s/--silent option to suppress them.

simonw commented 1 year ago

I'm going to drop the -s shortcut since I want to use that for something else: