Fix wikia error

This commit is contained in:
Dragon Fire
2020-11-08 18:05:01 -05:00
parent dfcda099ee
commit 1205b901f9
+1 -1
View File
@@ -64,7 +64,7 @@ module.exports = class WikiaCommand extends Command {
format: 'json',
formatversion: 2
});
if (body.query.pages[0].missing) return null;
if (!body || body.query.pages[0].missing) return null;
return body.query.pages[0].pageid;
}