python get error mesage from Exception code example Example: exception pyton print except Exception as e: print(e)