← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1309059] [NEW] keystone/exceptions.py: NameError: name '_' is not defined

 

Public bug reported:

When running swift-proxy in Havana, I end up importing
keystone/exception.py, and get the following error at the end of a long
stacktrace:

  File "/usr/lib/python2.7/dist-packages/keystone/exception.py", line 81, in ValidationError
    message_format = _("Expecting to find %(attribute)s in %(target)s."
NameError: name '_' is not defined


We should explicitely import '_'

** Affects: keystone
     Importance: Undecided
     Assignee: Cyril Roelandt (cyril-roelandt)
         Status: New

** Changed in: keystone
     Assignee: (unassigned) => Cyril Roelandt (cyril-roelandt)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1309059

Title:
  keystone/exceptions.py: NameError: name '_' is not defined

Status in OpenStack Identity (Keystone):
  New

Bug description:
  When running swift-proxy in Havana, I end up importing
  keystone/exception.py, and get the following error at the end of a
  long stacktrace:

    File "/usr/lib/python2.7/dist-packages/keystone/exception.py", line 81, in ValidationError
      message_format = _("Expecting to find %(attribute)s in %(target)s."
  NameError: name '_' is not defined

  
  We should explicitely import '_'

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1309059/+subscriptions


Follow ups

References