Ignore timeout errors

This commit is contained in:
Ske 2020-02-18 21:56:15 +01:00
parent 55671b45d6
commit 2354e7fd74

View File

@ -26,6 +26,9 @@ namespace PluralKit.Bot
// Tasks being cancelled for whatver reason are, you guessed it, also not our problem.
if (e is TaskCanceledException) return false;
// Sometimes Discord just times everything out.
if (e is TimeoutException) return false;
// This may expanded at some point.
return true;
}