mispy-archive / twitter_ebooks

Better twitterbots for all your friends~
MIT License
972 stars 140 forks source link

Fixed bug where an empty corpus .json would cause archive command to fail #107

Closed ineffyble closed 8 years ago

ineffyble commented 8 years ago

Previously, running an archive command when an empty .json file existed generated A JSON text must at least contain two octets! (JSON::ParserError).

This has been resolved by checking not only that the file exists but that it has contents, using .zero?.

ghost commented 8 years ago

sweet, thanks :+1: