Change "try" block

This commit is contained in:
Maxim Khomutov 2023-07-03 00:45:55 +03:00
parent cdc120dc40
commit ff90811e48

View File

@ -14,11 +14,11 @@ parser.add_argument('-v', '--version', action="store_true", help='Print version
parser.add_argument('--config', help='Patch to config file.', nargs='?', default=None, type=str)
if __name__ == '__main__':
import core
from core import Core
core = Core()
try:
core.start()
except KeyboardInterrupt:
pass
except Exception as e:
print(e)
core.stop()
finally:
core.stop()