Hi Matthias,
I would expect it to be KeyError. This is easy to verify using Python:
ganieda:~% python
Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45)
[GCC 4.3.3] on linux2
Type help, copyright, credits or license for more information.
import ldb
x = ldb.Message()
x[foo]
Traceback (most
Fixed in my personal branch.
Jelmer Vernooij schrieb:
Hi Matthias,
I would expect it to be KeyError. This is easy to verify using Python:
ganieda:~% python
Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45)
[GCC 4.3.3] on linux2
Type help, copyright, credits or license for more information.
Hi Matthias,
Matthias Dieter Wallnöfer wrote:
+try:
+ pwd_props = int(res[0][pwdProperties][0])
+ pwd_hist_len = int(res[0][pwdHistoryLength][0])
+ min_pwd_len = int(res[0][minPwdLength][0])
+ min_pwd_age = int(res[0][minPwdAge][0])
+ max_pwd_age =
What exception should I use if an attribute doesn't exist?
Matthias
Jelmer Vernooij schrieb:
Hi Matthias,
Matthias Dieter Wallnöfer wrote:
+try:
+ pwd_props = int(res[0][pwdProperties][0])
+ pwd_hist_len = int(res[0][pwdHistoryLength][0])
+ min_pwd_len =
The branch, master has been updated
via aa6dc21fa304943ad70afd14f84cea720f3f2d27 (commit)
from aef96af916eab4c29656d3ff6426618f331b7400 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -
commit