Skip to content

Walk Multipart Email: initial_value must be str or None, not bytes #4

@bobmeliev

Description

@bobmeliev

Walk Multipart Email is failing with error:

TypeError: initial_value must be str or None, not bytes

Wait For Email is returning index as bytes but converting the index into string doesn't help.

    ${latest}=    Wait For Email    subject=Welcome!    timeout=60
    ${type}=    Evaluate    type($latest)    
    ${latest_str}=    Convert To String    ${latest}
    ${type}=    Evaluate    type($latest_str)    
    ${parts}=    Walk Multipart Email    ${latest_str}
20191121 10:17:59.267 : INFO : ${latest} = 12
20191121 10:17:59.284 : INFO : ${type} = <class 'bytes'>
20191121 10:17:59.288 : INFO : ${latest_str} = 12
20191121 10:17:59.292 : INFO : ${type} = <class 'str'>
20191121 10:17:59.533 : FAIL : TypeError: initial_value must be str or None, not bytes

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