Hopefully improved the status filtering code for listing attachments.
Fixed bad Exception re-raising.