Message356123
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(). |
|
Date |
User |
Action |
Args |
2019-11-06 12:22:07 | xnox | set | recipients:
+ xnox, xtreak |
2019-11-06 12:22:07 | xnox | set | messageid: <1573042927.4.0.483633531311.issue38708@roundup.psfhosted.org> |
2019-11-06 12:22:07 | xnox | link | issue38708 messages |
2019-11-06 12:22:07 | xnox | create | |
|