alan-turing-institute / ReadabiliPy

A simple HTML content extractor in Python. Can be run as a wrapper for Mozilla's Readability.js package or in pure-python mode.
MIT License
230 stars 36 forks source link

Solves bug regarding change of working directory #94

Closed giovannigarifo closed 1 year ago

giovannigarifo commented 3 years ago

Working directory for node process passed as parameter for subprocess.check_call(). Solves bug where if an exception (JSONDecodeError) occured while loading the json (line 46 of simple_json.py), the working directory is not reverted back.

jemrobinson commented 1 year ago

Thanks @giovannigarifo! Sorry for taking so long to look at this.