rest_router: stop catching Exception

catch more specific exceptions instead.

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
YAMAMOTO Takashi 2013-07-22 14:39:47 +09:00 committed by FUJITA Tomonori
parent 1b0c2e3441
commit ffc1e60df4

View File

@ -528,7 +528,7 @@ class Router(dict):
if msg[REST_RESULT] == REST_NG:
# Data setting is failure.
self._del_vlan_router(vlan_router.vlan_id, waiters)
except Exception as err_msg:
except ValueError as err_msg:
# Data setting is failure.
self._del_vlan_router(vlan_router.vlan_id, waiters)
raise err_msg