Skip to content

Autoreconnect to database?

If the db connection is closed, then the code doesn't attempt to reconnect at all. Telling the bot to reload Judd is sufficient but messy; a code solution that handles psycopg.OperationalError would be better