Skip to content
Permalink
Browse files
增加断言,预防错误
  • Loading branch information
JoeCao committed Apr 16, 2015
1 parent 244c71f commit f252996955398dd02520ed7fe09d00036b62a9f0
Showing 1 changed file with 2 additions and 0 deletions.
@@ -3,6 +3,7 @@
from urllib2 import HTTPError

from pyjsonrpc import HttpClient, JsonRpcError
from dubbo_client.registry import Registry

from dubbo_client.rpcerror import NoProvider, ConnectionFail, dubbo_client_errors, InternalError

@@ -25,6 +26,7 @@ def __call__(self, *args, **kwargs):
return self.client_instance.call(self.method, *args, **kwargs)

def __init__(self, interface, registry, **kwargs):
assert isinstance(registry, Registry)
self.interface = interface
self.registry = registry
self.group = kwargs.get('group', '')

0 comments on commit f252996

Please sign in to comment.