flairNLP / fundus

A very simple news crawler with a funny name
MIT License
98 stars 59 forks source link

Rearrange If Statement #506

Closed addie9800 closed 2 weeks ago

addie9800 commented 2 weeks ago

This is just a minor change, but it since the overwrite flag is verified before the JSON data is loaded, it allows us to overwrite the JSON, even if the JSON is malformed for whatever reason. With the former version, the JSON would first be loaded and cause an Exception if it was malformed. First seen in #466