On 2021-02-17 at 16:52:55 +0000, Chris Green <c...@isbd.net> wrote: > Stefan Ram <r...@zedat.fu-berlin.de> wrote: > > Chris Green <c...@isbd.net> writes: > > >But msghdr["subject"] is surely just a string isn't it? Why is it > > >complaining about something of type 'Header'? > > > > What would you do to debug-print the type of an object? > > > I don't know, what would I do? :-) > > Without knowing what provokes the problem I could be waiting for days > or weeks even before I see the error again. As I'd need to print the > type for every message I'd get some big logs or I'd need to add a try: > except to trap the specific error.
An intermittent problem! They're our favorite! ;-) Seriously, though, do you have a message that provokes the problem? Is there a log at all? Can you re-run that message through the code, in a debugger or otherwise? -- https://mail.python.org/mailman/listinfo/python-list