This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xnox
Recipients xnox, xtreak
Date 2019-11-06.12:22:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573042927.4.0.483633531311.issue38708@roundup.psfhosted.org>
In-reply-to
Content
Yes, issue38698 covers the UnboundLocalError,

but doesn't cover inside get_msg_id there is also this gem:

    def get_msg_id(value):
        msg_id = MsgID()
        if value[0] in CFWS_LEADER:

It should test value before accessing value[0] like it is done in other places, ie.:

    if value and value[0] in CFWS_LEADER:

or indent the whole block to iterate over value with:

    while value:
        ...

which also tests that value has [0] index.

I guess I want to repurpose this issue for the value[0] indexerror in get_msg_id().
History
Date User Action Args
2019-11-06 12:22:07xnoxsetrecipients: + xnox, xtreak
2019-11-06 12:22:07xnoxsetmessageid: <1573042927.4.0.483633531311.issue38708@roundup.psfhosted.org>
2019-11-06 12:22:07xnoxlinkissue38708 messages
2019-11-06 12:22:07xnoxcreate