updated layout - make server as package

This commit is contained in:
nahakubuilde
2025-05-30 07:30:59 +01:00
parent 9c1f2fcc3c
commit aa7285af39
10 changed files with 41 additions and 19 deletions

13
start_server.py Normal file
View File

@@ -0,0 +1,13 @@
from email_server import start_server, logger
import asyncio
import sys
if __name__ == '__main__':
try:
asyncio.run(start_server())
except KeyboardInterrupt:
logger.info('Server interrupted by user')
sys.exit(0)
except Exception as e:
logger.error(f'Server error: {e}')
sys.exit(1)