From 3ec52b6899333708dfcda686a2d91ef9a3dae637 Mon Sep 17 00:00:00 2001 From: Jude Nelson Date: Fri, 31 Mar 2017 18:09:11 -0400 Subject: [PATCH] fix bug in checking API version --- blockstack_client/rpc.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/blockstack_client/rpc.py b/blockstack_client/rpc.py index d51ac4564..a6de5dcc0 100644 --- a/blockstack_client/rpc.py +++ b/blockstack_client/rpc.py @@ -3485,6 +3485,7 @@ class BlockstackAPIEndpointClient(object): return {'error': 'Failed to ping server: {}'.format(res['error'])} if res.get('version', None) != SERIES_VERSION: + log.error("Obsolete reply: {}".format(res)) return {'error': 'Obsolete API server (version {}). Please restart it with `blockstack api restart`.'.format(res.get('version', ''))} log.debug("Remote API endpoint is running version {}".format(res['version'])) @@ -4276,10 +4277,6 @@ def local_api_start_wait( api_host='localhost', api_port=DEFAULT_API_PORT, confi print(res['error'], file=sys.stderr) return False - if res.get('version', None) != SERIES_VERSION: - print("Obsolete API server (version {}). Please restart it with `blocksatck api restart`.".format(res.get('version', '')), file=sys.stderr) - return False - running = True break except requests.ConnectionError as ie: