mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-04-03 06:26:02 +00:00
Change "try" block
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user