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

idekey crashes app #216

@jrvmedic

Description

@jrvmedic
$ 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 "jrvmedic2@gmail.com"
What other information do you require?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions