diff --git a/redbot/__main__.py b/redbot/__main__.py index d8c7b51f68c..e4d694851de 100644 --- a/redbot/__main__.py +++ b/redbot/__main__.py @@ -404,6 +404,7 @@ async def run_bot(red: Red, cli_flags: Namespace) -> None: ) sys.exit(ExitCodes.CONFIGURATION_ERROR) except Exception as e: + # Catch all other exceptions here to prevent shutdown hangs log.critical(e) sys.exit(ExitCodes.CRITICAL)