commit 2b08645ec03dcd2322f54f53a6ad404a01dccb39 Author: Jiri Prochazka jprochaz@redhat.com Date: Tue Apr 21 15:10:46 2015 +0200
Fix "Raising a new style class which doesn't inherit from BaseException" error
Found with pylint. Fixed typo in raise command, raise should use MachineError and not Machine.
Signed-off-by: Jiri Prochazka jprochaz@redhat.com Signed-off-by: Jiri Pirko jiri@resnulli.us
lnst/Controller/Machine.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py index 783d357..8da1a10 100644 --- a/lnst/Controller/Machine.py +++ b/lnst/Controller/Machine.py @@ -184,7 +184,7 @@ class Machine(object): if hello != "hello": msg = "Unable to establish RPC connection " \ "to machine %s, handshake failed!" % hostname - raise Machine(msg) + raise MachineError(msg)
for iface in self._interfaces: iface.initialize()
lnst-developers@lists.fedorahosted.org