#25862: AttributeError: 'FileSystemStorage' object has no attribute 'location'
------------------------------+--------------------
     Reporter:  codingjoe     |      Owner:  nobody
         Type:  Bug           |     Status:  new
    Component:  Core (Other)  |    Version:  master
     Severity:  Normal        |   Keywords:
 Triage Stage:  Unreviewed    |  Has patch:  0
Easy pickings:  0             |      UI/UX:  0
------------------------------+--------------------
 I don't really want to bug anyone with python 2.7, for I couldn't care
 less. But, I stumbled upon something rather odd.

 Easiest is to just check out the error on travis including the stack
 trace:
 https://travis-ci.org/codingjoe/django-stdimage/builds/94713726

 Everything works fine in Python 3, the attribute is available, as it
 should. It it's an instance attribute and properly set in the `__init__`
 method:
 
https://github.com/django/django/blob/master/django/core/files/storage.py#L169-L172

 I guess the error is here:
 https://github.com/django/django/blob/master/django/utils/_os.py#L24-L32

 I'm not sure tho, because the method must return at least `None`,
 therefore I don't see how the attribute error is being raised.

--
Ticket URL: <https://code.djangoproject.com/ticket/25862>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.d69b4a4fbe633432de6800a7dd84cca0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to