mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-08-18 00:35: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)
|
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()
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user