summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2013-07-22 14:39:47 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-07-22 22:27:35 +0900
commitffc1e60df48f1d23c51711f48804fa9d023010aa (patch)
tree86151e4b7476e67e8996cae8e80caa5c5f911929
parent1b0c2e3441ec12409380f809fe5f5f8879b938c2 (diff)
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>
-rw-r--r--ryu/app/rest_router.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/app/rest_router.py b/ryu/app/rest_router.py
index 230fc081..31ef91f8 100644
--- a/ryu/app/rest_router.py
+++ b/ryu/app/rest_router.py
@@ -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