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) parser.add_argument('--config', help='Patch to config file.', nargs='?', default=None, type=str)
if __name__ == '__main__': if __name__ == '__main__':
import core from core import Core
core = Core()
try: try:
core.start() core.start()
except KeyboardInterrupt: except KeyboardInterrupt:
pass pass
except Exception as e: finally:
print(e) core.stop()
core.stop()