I need some help interpreting this error
Chris Green
cl at isbd.net
Wed Feb 17 11:52:55 EST 2021
Stefan Ram <ram at zedat.fu-berlin.de> wrote:
> Chris Green <cl at 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.
--
Chris Green
ยท
More information about the Python-list
mailing list