#35323: Fix FileExistsError in django/core/files/move.py.
-----------------------------------------+------------------------
Reporter: bcail | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
In file_move_safe(), if the destination exists and allow_overwrite is
False,
[https://github.com/django/django/blob/main/django/core/files/move.py#L47
FileExistsError is raised] - but it's immediately swallowed because it's
inside a try block. The code goes on to try the manual copy process, and a
new FileExistsError is raised in that code.
--
Ticket URL: <https://code.djangoproject.com/ticket/35323>
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/0107018e62386375-9383ab4c-bd56-47d7-91ca-cfc2f1103a4f-000000%40eu-central-1.amazonses.com.