Преглед на файлове

Fixed #15799 -- Doc'd that Storage._open() should raise FileNotFoundError when file doesn't exist.

anthony kugel преди 1 година
родител
ревизия
8edaf07a28
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      docs/howto/custom-file-storage.txt

+ 2 - 1
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)