From 7865c368a4b3f9a11e04f176b4c8d233686005b4 Mon Sep 17 00:00:00 2001 From: Tokarak Date: Wed, 15 Jun 2022 22:05:21 +0100 Subject: [PATCH] rash launchgui.py on error If mallory crashes, launchgui would start while-True-ing error messages; This should also make clear the annoying scenario new users face when they try to run the gui without mallory. That should go in the README someday soon. --- src/Pyro/protocol.py | 2 +- src/gui/guimain.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Pyro/protocol.py b/src/Pyro/protocol.py index b509573..87a1d3e 100644 --- a/src/Pyro/protocol.py +++ b/src/Pyro/protocol.py @@ -268,7 +268,7 @@ def bindToURI(self,URI): raise ConnectionDeniedError('invalid response') except socket.error: Log.msg('PYROAdapter','connection failed to URI',str(URI)) - raise ProtocolError('connection failed') + raise ProtocolError('Could not connect to mallory instance.') finally: self.lock.release() diff --git a/src/gui/guimain.py b/src/gui/guimain.py index bdffb8f..ee38a02 100644 --- a/src/gui/guimain.py +++ b/src/gui/guimain.py @@ -195,7 +195,7 @@ def check_for_de(self): eventcnt = 0 while True: - try: + # try: eventlist = self.remote_debugger.getdebugq() # Currently only handling one selection @@ -241,10 +241,10 @@ def check_for_de(self): #self.curdebugevent = next_unsent self.send_cur_de(next_unsent) - except: - print "[*] MalloryGui: check_for_de: exception in de check loop" - print sys.exc_info() - traceback.print_exc() + # except: + # print "[*] MalloryGui: check_for_de: exception in de check loop" + # print sys.exc_info() + # traceback.print_exc() class StreamListDelegate(QtGui.QItemDelegate): def __init__(self, parent, model):