X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Fnetns%2Fnetnsswitch.py;h=1387f6191f41f9a463852eb1ab4c7bd2d69bf73c;hp=90b981cfe7920ea0d99b7d33fb3d89a87d2b4678;hb=6285ca51026efb69642eea9dfc7c480e722d84a9;hpb=cb5d027b813a27d7de263653e1a8e0cef5490f0a diff --git a/src/nepi/resources/netns/netnsswitch.py b/src/nepi/resources/netns/netnsswitch.py index 90b981cf..1387f619 100644 --- a/src/nepi/resources/netns/netnsswitch.py +++ b/src/nepi/resources/netns/netnsswitch.py @@ -48,7 +48,7 @@ class NetNSSwitch(NetNSBase): if not interface: msg = "Switch not connected to any Interface!!" self.error(msg) - raise RuntimeError, msg + raise RuntimeError(msg) return interface[0]