I have a python function that returns
def edit_user(request):
error = False
errMsg = ""
id = int(request.POST.get("add_user"))
if config.editUser(id) != True
error = True
errMsg = _('Failed to edit existing user.')
return [error, errMsg]
I'm calling this function from another python function.
How do I get these two return values, (error and errMsg) into two separate variables?