On this page
mailbox.NotEmptyError
Prev: mailbox.NoSuchMailboxError | Up: mailbox
Rel: mailbox.Babyl, mailbox.BabylMessage, mailbox.Error, mailbox.ExternalClashError
Ref: docs.python.org โ mailbox.NotEmptyError
Tags: #public #python3 #stdlib #mailbox
Import
import mailbox
from mailbox import NotEmptyError
Signature & Overview
mailbox.NotEmptyError(...)
The specified mailbox is not empty and deletion was requested.
Methods & Attributes
NotEmptyError.add_note(self, note, /)โ Add a note to the exceptionNotEmptyError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import mailbox
assert issubclass(mailbox.NotEmptyError, mailbox.Error)
Gotchas
- Raised by
remove_folder()when attempting to delete a non-emptyMaildir/MHfolder.
REPL Inspect
from mailbox import NotEmptyError
help(NotEmptyError)
Linked from
Related notes
- tuts/python3/stdlib_module/mailbox/NoSuchMailboxError Linked here; links to this page; shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/Babyl Linked here; shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/BabylMessage Linked here; shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/Error Linked here; shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/ExternalClashError Linked here; shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/Mailbox Linked here; shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/mailbox/FormatError shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/Maildir shared tags: #mailbox, #stdlib
- tuts/python3/stdlib_module/mailbox/MaildirMessage shared tags: #mailbox, #stdlib