Skip to content

Something changed since version 24 in data structures #526

@baiomys

Description

@baiomys

Processing email data obtained from WebSockets no longer work in v26

Here is queue:

    data = json.loads(response)
    if data['Type'] == 'new' and max_q_messages > 0 :
         await email_queue.put([lbl, data['Data']])

This is processing:

     msg_rec = email_queue.get_nowait()  
     lbl,data = msg_rec
     await hook_run(pit=_GD['PIT_BY_NAM'][lbl], hook=data)

And this is faulty code since I upgraded to v26

async def hook_run(hook: dict, pit: PitInfo):
    rcpt = hook['To'] + hook['Cc'] + hook['Bcc']

TypeError: can only concatenate list (not "NoneType") to list

Looks like something changed in To, Cc or Bcc

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions