From 474cc420bf6bc1067e2aaa4b40cf6a08d62096f7 Mon Sep 17 00:00:00 2001 From: Daniyal Date: Tue, 16 Mar 2021 21:11:27 +0530 Subject: Refs #32508 -- Raised Type/ValueError instead of using "assert" in django.core. --- docs/releases/4.0.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') diff --git a/docs/releases/4.0.txt b/docs/releases/4.0.txt index 56197115c6..6f10124c0c 100644 --- a/docs/releases/4.0.txt +++ b/docs/releases/4.0.txt @@ -355,6 +355,13 @@ Miscellaneous to ``reorder_tests()``. It now accepts an iterable of tests rather than a test suite, and returns an iterator of tests. +* Calling ``FileSystemStorage.delete()`` with an empty ``name`` now raises + ``ValueError`` instead of ``AssertionError``. + +* Calling ``EmailMultiAlternatives.attach_alternative()`` or + ``EmailMessage.attach()`` with an invalid ``content`` or ``mimetype`` + arguments now raise ``ValueError`` instead of ``AssertionError``. + .. _deprecated-features-4.0: Features deprecated in 4.0 -- cgit v1.3