key.c (convflags): Fix error message.
[catacomb-python] / key.c
diff --git a/key.c b/key.c
index cd330c7..42ea925 100644 (file)
--- a/key.c
+++ b/key.c
@@ -270,7 +270,7 @@ static int convflags(PyObject *x, void *p)
   rc = 1;
   goto end;
 tyerr:
-  TYERR("expected flag string or flag/mask pair");
+  TYERR("expected flag string or integer bitfield");
 end:
   return (rc);
 }
@@ -1097,6 +1097,7 @@ static int keydatastruct_pystore(PyObject *me,
 
   if ((tag = PyString_AsString(key)) == 0)
     goto end;
+  key_split(&KEYDATA_KD(me));
   if (value) {
     if (!KEYDATA_PYCHECK(value))
       TYERR("expected KeyData value");