catch exit exception
This commit is contained in:
parent
d6640b2e81
commit
9f4f42eefd
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ class ServerPool(object):
|
|||
import traceback
|
||||
traceback.print_exc()
|
||||
os.exit(0)
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
def server_is_run(self, port):
|
||||
port = int(port)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue