[New-bugs-announce] [issue28881] int no attribute 'lower'

Vitold S report at bugs.python.org
Mon Dec 5 14:04:09 EST 2016


New submission from Vitold S:

I have MIME message and parse content. Later I walk on message headers by call for and receive follow traceback:

Traceback (most recent call last):
...
    for m in msg:  (msg is email.message.Message instance)
  File "C:\Python27\lib\email\message.py", line 294, in __getitem__
    return self.get(name)
  File "C:\Python27\lib\email\message.py", line 360, in get
    name = name.lower()
AttributeError: 'int' object has no attribute 'lower'

But with items() all work properly.

----------
components: email
messages: 282454
nosy: Vitold S, barry, r.david.murray
priority: normal
severity: normal
status: open
title: int no attribute 'lower'
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28881>
_______________________________________


More information about the New-bugs-announce mailing list