RHBA-2011:1658

Type: Bug fix
Severity: None
Published: 2011-12-06
Red Hat Enterprise Linux 6

The python-netaddr package provides a network address representation and manipulation library for Python. The netaddr library allows Python applications to work with IPv4 and IPv6 addresses, subnetworks, non-aligned IP address ranges and sets, MAC addresses, Organizationally Unique Identifiers (OUI), Individual Address Blocks (IAB), and IEEE EUI-64 identifiers. This updated python-netaddr package fixes the following bug: * Prior to this update, if an IPNetwork object was instantiated with bad data, the python-netaddr code tried to access an unbound local variable and the erroneous exception "UnboundLocalError" was raised. It should raise the AddrFormatError exception instead. Consequently a user of python-netaddr had to check for all exceptions instead of just "netaddr.core.AddrFormatError". With this update the code is corrected and functions as expected in the scenario described. (BZ#710373) All users of python-netaddr are advised to upgrade to this updated package, which fixes this bug.

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-27T22:48:10.777Z UTC

Official vendor advisory

Red Hat Enterprise Linux 6

View source
Observed 2026-11-27T22:48:10.777Z UTC. Last updated 2026-10-07T04:27:28.617Z UTC.

Upstream Advisory

Affected Packages

  • python-netaddr 0.7.5-4.el6

Interested in being alerted when there are new versions of python-netaddr? Set up an alert.
RHBA-2011:1658: python-netaddr bug fix update | Package Alert