ArchiveTeam / NewsGrabber

Grabbing all news.
62 stars 32 forks source link

Bot shouldn't crash if a badly named service file is committed #9

Open phuzion opened 8 years ago

phuzion commented 8 years ago

According to @HarryC145 in IRC, the entire bot apparently crashes if someone commits a badly-named file.

For example, if someone were to make a file named web_importantnewssite_com.py instead of web__importantnewssite_com.py, the bot would crash.

That shouldn't happen. The logical fix would be to print an error to stderr (and perhaps IRC) and skip the file.

Arkiver2 commented 8 years ago

The bot will not crash on files named web_importantnewssite_com.py.

The bot will crash on files named webimportantnewssite.com.py or webimportantn-ewssite_com.py instead of web__importantnewssite_com.py.