#35868: 'collectstatic' management command inappropriately eating AttributeError
exceptions
-------------------------------------+------------------------------------
Reporter: Brett G | Owner: (none)
Type: Bug | Status: new
Component: contrib.staticfiles | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+------------------------------------
Changes (by Sarah Boyce):
* stage: Unreviewed => Accepted
Comment:
Looks like the catching of the `AttributeError` was added back in
4f1ac8f5f15f08f34dc06c7442cec50a7af31c45 (which was to align to a change
in django-storages https://github.com/jezdez/django-
staticfiles/commit/b87a3531fbf4f18fea0633310410f8710cd0de39)
As a custom storage backend should inherit from
`django.core.files.storage.Storage` (and this is documented
https://docs.djangoproject.com/en/5.1/howto/custom-file-storage/#how-to-
write-a-custom-storage-class), I feel like it will always have
`get_modified_time` if folks are following the docs.
I believe it is safe to remove this
--
Ticket URL: <https://code.djangoproject.com/ticket/35868#comment:3>
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 visit
https://groups.google.com/d/msgid/django-updates/01070192d29d21c1-658c6f15-5ca6-4102-a081-13ec21be313b-000000%40eu-central-1.amazonses.com.