diff --git a/Sublime/fl0w/fl0w.py b/Sublime/fl0w/fl0w.py index 7f54f30..b4cd3b6 100644 --- a/Sublime/fl0w/fl0w.py +++ b/Sublime/fl0w/fl0w.py @@ -18,6 +18,7 @@ import sublime_plugin import socket from ESock import ESock +from Utils import capture_trace import Routing from SublimeMenu import * import Logging @@ -42,7 +43,10 @@ def sock_handler(sock, routes, handler): data = sock.recv() if data[1] in routes: routes[data[1]].run(data[0], handler) - except (OSError, socket.error): + except (OSError, socket.error, Exception) as e: + if e is Exception: + Logging.info("Exception occured in network thread.") + capture_trace() handler.invoke_disconnect() break