X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Flinux%2Fccn%2Fccncontent.py;h=da8c2ab062bbd380bef7d695fc5bd45dcb661d0b;hp=6a32e1ed7ef8362cb248eb869d87eb50aba07bfb;hb=6285ca51026efb69642eea9dfc7c480e722d84a9;hpb=cb5d027b813a27d7de263653e1a8e0cef5490f0a diff --git a/src/nepi/resources/linux/ccn/ccncontent.py b/src/nepi/resources/linux/ccn/ccncontent.py index 6a32e1ed..da8c2ab0 100644 --- a/src/nepi/resources/linux/ccn/ccncontent.py +++ b/src/nepi/resources/linux/ccn/ccncontent.py @@ -117,7 +117,7 @@ class LinuxCCNContent(LinuxApplication): if proc.poll(): msg = "Failed to execute command" self.error(msg, out, err) - raise RuntimeError, msg + raise RuntimeError(msg) def do_start(self): if self.state == ResourceState.READY: @@ -128,7 +128,7 @@ class LinuxCCNContent(LinuxApplication): else: msg = " Failed to execute command '%s'" % command self.error(msg, out, err) - raise RuntimeError, msg + raise RuntimeError(msg) @property def _start_command(self):