← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1595830] [NEW] StandardError raises NameError in Python3

 

Public bug reported:

It raises NameError: name 'StandardError' is not defined in Python3.

class TimeoutError(StandardError):
    pass

Traceback (most recent call last):
  File "Z:/test_py3.py", line 1, in <module>
    class TimeoutError(StandardError):
NameError: name 'StandardError' is not defined

** Affects: nova
     Importance: Undecided
     Assignee: Bin Zhou (binzhou)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Bin Zhou (binzhou)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1595830

Title:
  StandardError raises NameError in Python3

Status in OpenStack Compute (nova):
  New

Bug description:
  It raises NameError: name 'StandardError' is not defined in Python3.

  class TimeoutError(StandardError):
      pass

  Traceback (most recent call last):
    File "Z:/test_py3.py", line 1, in <module>
      class TimeoutError(StandardError):
  NameError: name 'StandardError' is not defined

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


Follow ups