Remove 'BODY is not RSS or ATOM' error from console logging'
This commit is contained in:
benji7425 2017-10-02 02:08:04 +01:00
parent 53fc953caa
commit 7c5ef008d8
3 changed files with 14 additions and 3 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## v3.0.0-b6
### Updatd
- Removed "Body is not RSS or ATOM" error from being console logged
- These seem to happen quite a lot, but don't actually impair the functionality, so just cause un-necessary spam
## v3.0.0-b5
### Added

View File

@ -70,8 +70,12 @@ module.exports = class FeedData {
_doFetchRSS(guild) {
FeedRead(this.url, (err, articles) => {
if (err)
return DiscordUtil.dateError(err.message || err);
//filter out "Body is not RSS or ATOM" errors because these seem to happen rather frequently
if (err) {
if (err.message !== "Body is not RSS or ATOM")
DiscordUtil.dateError("Error reading RSS feed: " + (err.message || err));
return;
}
const latest = normaliseUrl(articles[0].link);

View File

@ -1,5 +1,5 @@
{
"version": "3.0.0-b5",
"version": "3.0.0-b6",
"main": "app/index.js",
"scripts": {
"postinstall": "cd ./discord-bot-core && npm install",