try:
return [ True, errors[error], error ] # Error found
except SoapFault as e: #or this could be Exception as e doesn't matter
print str(e)
I’m getting
['soapenv', 'Sender', 'invalid request']
unhashable type: 'list'
what’s wrong with that unhashable list, and when I’m trying to print e[2], I’m getting IndexError: tuple index out of range
First, are you sure error is a number and not a String like ‘1’, for example? Maybe that’s a problem.
For the second answer, e is probably not an array. Just when its converted to String it may print the contents of a wrapped array.
Anyway, try to give more context to your question. Edit it to include a test that gives your error in a way that people can reproduce.