except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
id = request.args.get('id')
if id and any(id):
port_pairs = filter(lambda port_pair: port_pair.id == id, port_pairs)
- resp = {"port_pairs": map(lambda port_pair: port_pair.create_dict(self.api.compute), port_pairs)}
+ resp = {"port_pairs": list(map(lambda port_pair: port_pair.create_dict(self.api.compute), port_pairs))}
return Response(json.dumps(resp), status=200,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')
except Exception as ex:
logging.exception("Neutron SFC: %s Exception." %
str(self.__class__.__name__))
- return Response(ex.message, status=500,
+ return Response(str(ex), status=500,
mimetype='application/json')