pugdebug icon indicating copy to clipboard operation
pugdebug copied to clipboard

idekey crashes app

Open jrvmedic opened this issue 6 years ago • 0 comments

$ python3.8 ./app.py 
Traceback (most recent call last):
  File "/home/usr/pugdebug/pugdebug/server.py", line 43, in run
    self.__listen(socket_server)
  File "/home/usr/pugdebug/pugdebug/server.py", line 91, in __listen
    is_valid = connection.init_connection()
  File "/home/usr/pugdebug/pugdebug/server.py", line 185, in init_connection
    if idekey != '' and init_message['idekey'] != idekey:
KeyError: 'idekey'
Aborted (core dumped)

Proposed fix: change line #185 of server.py from if idekey != '' and init_message['idekey'] != idekey: to if (idekey != '') and ('idekey' in init_message) and (init_message['idekey'] != idekey):

I have just started to use pugdebug. If you allow me to have access, i will make updates directly, or send you patch file(s), or attach changed files to reported issues. My email is "[email protected]" What other information do you require?

jrvmedic avatar Dec 14 '19 00:12 jrvmedic