[Teammetrics-discuss] Error in liststat.py

Andreas Tille andreas at an3as.eu
Fri Aug 5 14:05:18 UTC 2011

On Fri, Aug 05, 2011 at 07:06:07PM +0530, Sukhbir Singh wrote:
> +                    VALUES (%s, %s, s, %s, %s, %s, %s, %s, %s, %s, %s, %s);""",
> Hehe, I had added this in an earlier commit when I added msg_id column
> but I put a 's' instead of '%s' :)
> Fixed and pushed.

Next try:

$ ./liststat.py
Traceback (most recent call last):
  File "./liststat.py", line 497, in <module>
    main(conf_info, total_lists)
  File "./liststat.py", line 449, in main
    parse_and_save(mbox_files, mbox_hashes)
  File "./liststat.py", line 249, in parse_and_save
    decoded_subject = email.header.decode_header(raw_subject)
  File "/usr/lib/python2.6/email/header.py", line 93, in decode_header
    dec = email.quoprimime.header_decode(encoded)
  File "/usr/lib/python2.6/email/quoprimime.py", line 336, in header_decode
    return re.sub(r'=\w{2}', _unquote_match, s)
  File "/usr/lib/python2.6/re.py", line 151, in sub
    return _compile(pattern, 0).sub(repl, string, count)
  File "/usr/lib/python2.6/email/quoprimime.py", line 324, in _unquote_match
    return unquote(s)
  File "/usr/lib/python2.6/email/quoprimime.py", line 106, in unquote
    return chr(int(s[1:3], 16))
ValueError: invalid literal for int() with base 16: 'we'

Kind regards



More information about the Teammetrics-discuss mailing list