If you want to access an exception object's components and store them in an object called e, you have to use the following form of exception statement
except Exception(e):
except e=Exception:
except Exception as e:
such an action is not possible in Python
Submit