Skip to content

Commit

Permalink
Dont give out error when user is 404
Browse files Browse the repository at this point in the history
ThomasAunvik committed May 23, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6bda8b7 commit 0f958c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AnimeListBot/Handler/Database/Objects/DiscordUser.cs
Original file line number Diff line number Diff line change
@@ -481,6 +481,7 @@ public async Task<bool> UpdateMALInfo(string username)
return malProfile != null;
}catch(JikanRequestException e)
{
if (e.ResponseCode == System.Net.HttpStatusCode.NotFound) return false;
throw new Exception("MyAnimeList is having troubles, try again later. Join support server for status updates: https://discord.gg/Q9cf46R \nError ResponseCode: " + e.ResponseCode + "");
}
}

0 comments on commit 0f958c8

Please sign in to comment.