mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(bot): ignore "out of shared memory" postgres error
This commit is contained in:
parent
24db9f28c2
commit
d5adcaf76c
1 changed files with 3 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ public static class MiscUtils
|
||||||
// Ignore *other* "database is shutting down" error (57P01)
|
// Ignore *other* "database is shutting down" error (57P01)
|
||||||
if (e is PostgresException pe2 && pe2.SqlState == "57P01") return false;
|
if (e is PostgresException pe2 && pe2.SqlState == "57P01") return false;
|
||||||
|
|
||||||
|
// ignore "out of shared memory" error
|
||||||
|
if (e is PostgresException pe3 && pe3.SqlState == "53200") return false;
|
||||||
|
|
||||||
// Ignore database timing out as well.
|
// Ignore database timing out as well.
|
||||||
if (e is NpgsqlException tpe && tpe.InnerException is TimeoutException)
|
if (e is NpgsqlException tpe && tpe.InnerException is TimeoutException)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue