3.0.0-b6
Remove 'BODY is not RSS or ATOM' error from console logging'
This commit is contained in:
parent
53fc953caa
commit
7c5ef008d8
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue