mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-05 12:26:11 +02:00
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:
parent
1b0c2e3441
commit
ffc1e60df4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user