Bug 1067705 - Uninitialized SystemError raised when accessing an invalid
Summary: Uninitialized SystemError raised when accessing an invalid
Keywords:
Status: CLOSED DUPLICATE of bug 1057772
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ethtool
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Sommerseth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-20 22:01 UTC by Dan Kenigsberg
Modified: 2016-05-22 23:35 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-02-21 09:19:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dan Kenigsberg 2014-02-20 22:01:31 UTC
Description of problem:
Formerly (python-ethtool-0.6-5.el6.x86_64) we had

  python -c 'import ethtool;print ethtool.get_interfaces_info("an invalid name of a device")[0].get_ipv6_addresses()'
  ()

but recently (python-ethtool-0.10-1.fc20.x86_64) this has changed to

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
  SystemError: error return without exception set

Version-Release number of selected component (if applicable):
python-ethtool-0.10-1.fc20.x86_64

How reproducible:
100%

It may make sense to raise an exception if the ethtool.etherinfo object for the device is invalid, but it should be a more specific SystemError.

Comment 1 David Sommerseth 2014-02-21 09:19:33 UTC

*** This bug has been marked as a duplicate of bug 1057772 ***


Note You need to log in before you can comment on or make changes to this bug.