Merge "Fix kwargs for NECDBException."

This commit is contained in:
Jenkins 2013-03-26 19:22:58 +00:00 committed by Gerrit Code Review
commit 7b95039ab4

View File

@ -113,7 +113,7 @@ def add_ofc_item(session, resource, quantum_id, ofc_id, old_style=False):
session.flush()
except Exception as exc:
LOG.exception(exc)
raise nexc.NECDBException
raise nexc.NECDBException(reason=exc.message)
return item
@ -189,7 +189,7 @@ def add_portinfo(session, id, datapath_id='', port_no=0,
session.add(portinfo)
except Exception as exc:
LOG.exception(exc)
raise nexc.NECDBException
raise nexc.NECDBException(reason=exc.message)
return portinfo