summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo_obj.c
diff options
context:
space:
mode:
Diffstat (limited to 'python-ethtool/etherinfo_obj.c')
-rw-r--r--python-ethtool/etherinfo_obj.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/python-ethtool/etherinfo_obj.c b/python-ethtool/etherinfo_obj.c
index cfdd492..264a823 100644
--- a/python-ethtool/etherinfo_obj.c
+++ b/python-ethtool/etherinfo_obj.c
@@ -108,8 +108,7 @@ PyObject *_ethtool_etherinfo_getter(etherinfo_py *self, PyObject *attr_o)
} else if( strcmp(attr, "ipv6_netmask") == 0 ) {
return PyInt_FromLong(self->info->ipv6_netmask);
}
- PyErr_SetString(PyExc_AttributeError, "Unknown attribute name");
- return NULL;
+ return PyObject_GenericGetAttr((PyObject *)self, attr_o);
}