don't call unexisting methods

git-svn-id: svn://localhost/lasso-conform/trunk@32 2a3a78c3-912c-0410-af21-e1fb2d1df599
This commit is contained in:
fpeters 2006-12-07 15:25:31 +00:00
parent 7759d9b31c
commit d5899ed8a6
1 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,8 @@ class UserPage(Directory):
else:
ident_methods = get_cfg('identification', {}).get('methods', [])
for klass in [x for x in qommon.ident.get_method_classes() if x.key in ident_methods]:
klass().delete(self.user)
if hasattr(klass, 'delete'):
klass().delete(self.user)
self.user.remove_self()
return redirect('..')