Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

idekey crashes app #216

Open
jrvmedic opened this issue Dec 14, 2019 · 0 comments
Open

idekey crashes app #216

jrvmedic opened this issue Dec 14, 2019 · 0 comments

Comments

@jrvmedic
Copy link

$ 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?

andreym333 added a commit to Mte90/pugdebug that referenced this issue Aug 8, 2020
Check for the existence of the Idekey attribute in the init_message
response.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant