R. David Murray <rdmur...@bitdance.com> added the comment:
Yep, you've found another in a category of bugs that have shown up in the parser: places where there is a missing check for there being any value at all before checking character [0]. In this case, the fix should be to add if not obs_local_part: return obs_local_part, value just before the if that is blowing up. ---------- title: parse_message_id, get_msg_id, get_obs_local_part is poorly written -> get_obs_local_part fails to handle empty local part _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42484> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com