diff --git a/attributs.py b/attributs.py index e79cce1..746e5e9 100644 --- a/attributs.py +++ b/attributs.py @@ -51,7 +51,7 @@ def attrify(val, attr, ldif, conn, ctxt_check = True): if isinstance(val, Attr): return val else: - return CRANS_ATTRIBUTES[attr](val, ldif, conn, ctxt_check) + return CRANS_ATTRIBUTES.get(attr, Attr)(val, ldif, conn, ctxt_check) class Attr(object): legend = "Human-readable description of attribute"