#15799: Document what exception should be raised when trying to open 
non-existent
file
--------------------------------------+------------------------------------
     Reporter:  Jonas H.              |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  File uploads/storage  |                  Version:  dev
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  1
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  1                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Collin Anderson):

 * cc: Collin Anderson (added)
 * needs_docs:  0 => 1
 * type:  New feature => Cleanup/optimization
 * easy:  0 => 1


Comment:

 `FileNotFoundError` was added in Python 3.3 / PEP 3151 and kinda fixed
 this issue.

 Could maybe help to document raising exceptions like `FileNotFoundError`
 here https://docs.djangoproject.com/en/dev/howto/custom-file-storage/ ,
 though probably doesn't need to be super thoroughly documented, as it
 mostly should be similar to Python's open().

-- 
Ticket URL: <https://code.djangoproject.com/ticket/15799#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701883c76d7cc-3202e222-1b63-4223-9e53-9a3eadbba6e8-000000%40eu-central-1.amazonses.com.

Reply via email to