mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-08-17 16:25:36 +00:00
Change "try" block
This commit is contained in:
parent
cdc120dc40
commit
ff90811e48
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user