mirror of
https://github.com/triqs/dft_tools
synced 2024-11-01 03:33:50 +01:00
wrap generator : minor correction
- setter was not working in general. name variable error.
This commit is contained in:
parent
c8be004055
commit
76798cf6a2
@ -710,7 +710,7 @@ static int ${c.py_type}__set_prop_${p.name} (PyObject *self, PyObject *value, vo
|
||||
try {
|
||||
self_c.${p.setter.c_name} (convert_from_python<${p.setter.args[0][0]}>(value));
|
||||
}
|
||||
CATCH_AND_RETURN("in setting the attribute '${m.py_name}'",-1);
|
||||
CATCH_AND_RETURN("in setting the property '${p.name}'",-1);
|
||||
return 0;
|
||||
}
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user