Skip to content

Commit

Permalink
Fixed #15799 -- Doc'd that Storage._open() should raise FileNotFoundE…
Browse files Browse the repository at this point in the history
…rror when file doesn't exist.
  • Loading branch information
aokugel authored and felixxm committed Aug 4, 2023
1 parent 0336aa6 commit 8edaf07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/howto/custom-file-storage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8edaf07

Please sign in to comment.