Skip to content

Commit

Permalink
rash launchgui.py on error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Tokarak committed Jun 16, 2022
1 parent b5dfee7 commit 7865c36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Pyro/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
10 changes: 5 additions & 5 deletions src/gui/guimain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 7865c36

Please sign in to comment.