I am trying to resolve exceptions. In python2, i used to write like this:
except (Exception,InternalError,SQLAlchemyError) as e:
message = e.message;
But in python3 it gives an error that attribute message is not found. Now i tried this:
except (Exception,InternalError,SQLAlchemyError) as e:
message = e[0]
But how do I know which argument e[0], e[1] etc of the exception will hold the message? i need only the message and not all the arguments of the exception.