mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
sub_user_server print out exception on crash
This commit is contained in:
parent
8f2f88aeae
commit
2f992a6ea4
1 changed files with 4 additions and 0 deletions
|
|
@ -2,6 +2,8 @@ import sys
|
|||
import signal
|
||||
import socket
|
||||
|
||||
import traceback
|
||||
|
||||
from ftrack_server import FtrackServer
|
||||
from pype.ftrack.ftrack_server.lib import SocketSession, UserEventHub
|
||||
|
||||
|
|
@ -31,6 +33,8 @@ def main(args):
|
|||
server = FtrackServer("action")
|
||||
log.debug("Launched User Ftrack Server")
|
||||
server.run_server(session=session)
|
||||
except Exception:
|
||||
traceback.print_exception(*sys.exc_info())
|
||||
|
||||
finally:
|
||||
log.debug("Closing socket")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue