mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-06 22:19:01 +00:00
18 lines
315 B
Python
Executable File
18 lines
315 B
Python
Executable File
#! /usr/bin/env python3
|
|
import asyncio
|
|
import sys
|
|
|
|
from maigret.maigret import main
|
|
|
|
|
|
def run():
|
|
try:
|
|
loop = asyncio.get_event_loop()
|
|
loop.run_until_complete(main())
|
|
except KeyboardInterrupt:
|
|
print('Maigret is interrupted.')
|
|
sys.exit(1)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
run() |