Comment 1 for bug 353784

Revision history for this message
Martin Pitt (pitti) wrote : Re: addAttachment() crashes with HTTP Error 400: Bad Request for empty files

Ah, got it. It happens if data is empty. Reproducible on staging with

>>> b=lp.bugs[89040]
>>> b.addAttachment(comment='', data='', description='ThreadStacktrace.txt (retraced)', filename='ThreadStacktrace.txt', is_patch=False)

I'll work around this in apport.