* 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.
* owner: nobody => Ashis Kar
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/15799#comment:5>
* owner: nobody => Anthony Kugel
* needs_docs: 1 => 0
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/17144 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/15799#comment:6>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/15799#comment:7>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/15799#comment:8>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"8edaf07a28a3e3848ab1edbdcd2fdc25e6bd6015" 8edaf07a]:
{{{
#!CommitTicketReference repository=""
revision="8edaf07a28a3e3848ab1edbdcd2fdc25e6bd6015"
Fixed #15799 -- Doc'd that Storage._open() should raise FileNotFoundError
when file doesn't exist.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/15799#comment:9>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"a22aeef55551dc6827b11afcc994a342fca93453" a22aeef5]:
{{{
#!CommitTicketReference repository=""
revision="a22aeef55551dc6827b11afcc994a342fca93453"
[4.2.x] Fixed #15799 -- Doc'd that Storage._open() should raise
FileNotFoundError when file doesn't exist.
Backport of 8edaf07a28a3e3848ab1edbdcd2fdc25e6bd6015 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/15799#comment:10>