diff options
-rw-r--r-- | pypaste/server/__main__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pypaste/server/__main__.py b/pypaste/server/__main__.py index c28a9ba..e2f4ae6 100644 --- a/pypaste/server/__main__.py +++ b/pypaste/server/__main__.py @@ -142,6 +142,8 @@ async def main() -> int: await site.start() + log_info("starting pypaste") + try: await asyncio.Event().wait() except asyncio.exceptions.CancelledError: @@ -154,7 +156,6 @@ async def main() -> int: if __name__ == "__main__": try: - log_info("starting pypaste") sys.exit(asyncio.run(main())) except KeyboardInterrupt: sys.exit(0) |