diff options
| author | anthony kugel <anthonykugel@gmail.com> | 2023-08-03 14:54:15 -0500 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-08-04 18:08:46 +0200 |
| commit | a22aeef55551dc6827b11afcc994a342fca93453 (patch) | |
| tree | 552a6e4493309ff11da51ee85be5865c5dd8b614 /docs | |
| parent | 936afc2deb7e20f87c117d25a96e285384fc77dd (diff) | |
[4.2.x] Fixed #15799 -- Doc'd that Storage._open() should raise FileNotFoundError when file doesn't exist.
Backport of 8edaf07a28a3e3848ab1edbdcd2fdc25e6bd6015 from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/custom-file-storage.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/howto/custom-file-storage.txt b/docs/howto/custom-file-storage.txt index de44a1d938..881ef70bdf 100644 --- a/docs/howto/custom-file-storage.txt +++ b/docs/howto/custom-file-storage.txt @@ -76,7 +76,8 @@ objects. These are: Called by ``Storage.open()``, this is the actual mechanism the storage class uses to open the file. This must return a ``File`` object, though in most cases, you'll want to return some subclass here that implements logic specific to the -backend storage system. +backend storage system. The :exc:`FileNotFoundError` exception should be raised +when a file doesn't exist. .. method:: _save(name, content) |
