summaryrefslogtreecommitdiff
path: root/python/modules/IcePy/Current.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'python/modules/IcePy/Current.cpp')
-rw-r--r--python/modules/IcePy/Current.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/modules/IcePy/Current.cpp b/python/modules/IcePy/Current.cpp
index 70cbed0b509..c64c388daf5 100644
--- a/python/modules/IcePy/Current.cpp
+++ b/python/modules/IcePy/Current.cpp
@@ -193,7 +193,7 @@ currentGetter(CurrentObject* self, void* closure)
enumerator = "Idempotent";
break;
}
- self->mode = PyObject_GetAttrString(type, STRCAST(enumerator));
+ self->mode = getAttr(type, enumerator, false);
assert(self->mode);
}
Py_INCREF(self->mode);