If I have that code:
try: some_method() except Exception, e:
How can I get this Exception value (string representation I mean)?
To inspect the error message and do something with it (with Python 3)...
try: some_method() except Exception as e: if {value} in e.args: {do something}