Closed Bug 850720 Opened 10 years ago Closed 10 years ago
Error: 'None Type' object has no attribute 'localized _string'
No addon.name when connecting to bango in payments setup. sentry.dmz.phx1.mozilla.com/addons/marketplace-dev/group/12331/
Why is this using addon.name.localized_string? It should use unicode(addon.name) because that falls back to the default, unlocalized string IIRC.
Summary: [traceback] AAttributeError: 'NoneType' object has no attribute 'localized_string' → [traceback] AttributeError: 'NoneType' object has no attribute 'localized_string'
-> basta wrote this and comment 1 sounds like an easy 1 line fix.
Assignee: nobody → mattbasta
Target Milestone: --- → 2013-03-21
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Does this work? I don't actually remember if addon.name falls back to the default, unlocalized string.
Does it matter what name Solitude is storing? I mean if we wanted to do it right, we'd have to send a dict of all of the translations to Solitude and let it decide which locale to use when it wants to list the app name, no?
mmm, yes, right you are! I created bug 854039 For now we can just send the default locale. Does unicode(addon.name) do that? I am asking because comment #1 was just a guess.
You need to log in before you can comment on or make changes to this bug.