Improve process_exption to return True if login succeed

This commit is contained in:
Cédric Krier committed 2008-06-12 19:40:19 +02:00
1 parent aa8b3a4b36
commit cdbf18d4e5
1 file changed
+2 -1
+2 -1
View File
@@ -482,7 +482,7 @@ def process_exception(exception, parent, obj='', method='', *args):
except Exception, exception:
return process_exception(exception, parent, obj,
method, *args)
return
return True
data = str(exception.args[0])
description = data
if len(exception.args) > 1:
@@ -512,6 +512,7 @@ def process_exception(exception, parent, obj='', method='', *args):
warning(details, parent, description)
else:
error(type, parent, details)
return False
def node_attributes(node):
result = {}