handle replies to unexisting methods with an exception
authorLuc Yriarte <luc.yriarte@intel.com>
Mon, 25 Mar 2013 15:13:39 +0000 (16:13 +0100)
committerLuc Yriarte <luc.yriarte@intel.com>
Mon, 25 Mar 2013 16:47:34 +0000 (17:47 +0100)
cloudeebus/cloudeebus.py

index 69e499f..0614f4f 100755 (executable)
@@ -508,7 +508,7 @@ class CloudeebusService:
                     errorCB()
             self.servicePendingCalls[methodId] = None
         else:
-            print "No methodID %s  !!" % (methodId)  
+            raise Exception("No methodID " + methodId)
 
     def jsonEncodeTupleKeyDict(self, data):
         ndict = dict()