v0.28.0
- [TeamMsgExtractor #87] Added a new system to handle
NotImplementedErrorand other exceptions. All msg classes now have an option calledattachmentErrorBehaviorthat tells the class what to do if it has an error. The value should be one of three constants:ATTACHMENT_ERROR_THROW,ATTACHMENT_ERROR_NOT_IMPLEMENTED, orATTACHMENT_ERROR_BROKEN.ATTACHMENT_ERROR_THROWtells the class to not catch and exceptions and just let the user handle them.ATTACHMENT_ERROR_NOT_IMPLEMENTEDtells the class to catchNotImplementedErrorexceptions and put an instance ofUnsupportedAttachmentin place of a regular attachment.ATTACHMENT_ERROR_BROKENtells the class to catch all exceptions and either replace the attachment withUnsupportedAttachmentif it is aNotImplementedErrororBrokenAttachmentfor all other exceptions. With both of those options, caught exceptions will be logged. - In making the previous point work, much code from
Attachmenthas been moved to a new class calledAttachmentBase. BothBrokenAttachmentandUnsupportedAttachmentare subclasses ofAttachmentBasemeaning data can be extracted from their streams in the same way as a functioning attachment. - [TeamMsgExtractor #162] Pretty sure I actually got it this time. The execution flag should be applied by pip now.
- Fixed typos in some exceptions