X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Fns3%2Fns3wifiphy.py;h=331c944401790712754ab8e96b1b17edd431c340;hp=22513aae0944ea1fcf906f83b248669c98a4f521;hb=6285ca51026efb69642eea9dfc7c480e722d84a9;hpb=cb5d027b813a27d7de263653e1a8e0cef5490f0a diff --git a/src/nepi/resources/ns3/ns3wifiphy.py b/src/nepi/resources/ns3/ns3wifiphy.py index 22513aae..331c9444 100644 --- a/src/nepi/resources/ns3/ns3wifiphy.py +++ b/src/nepi/resources/ns3/ns3wifiphy.py @@ -47,7 +47,7 @@ class NS3BaseWifiPhy(NS3Base): if not devices: msg = "WifiPhy not connected to device" self.error(msg) - raise RuntimeError, msg + raise RuntimeError(msg) return devices[0] @@ -59,7 +59,7 @@ class NS3BaseWifiPhy(NS3Base): if not channels: msg = "WifiPhy not connected to channel" self.error(msg) - raise RuntimeError, msg + raise RuntimeError(msg) return channels[0]