From a30932fc868042dad174a99949bec2681c3df2e5 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 17 Dec 2016 13:52:11 +0900 Subject: [PATCH] Fix namespace of RPCError Fixes #76 --- server/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/protocol.py b/server/protocol.py index 020469f..a7fe34d 100644 --- a/server/protocol.py +++ b/server/protocol.py @@ -276,7 +276,7 @@ class ServerManager(util.LoggedClass): def electrum_header(self, height): '''Return the binary header at the given height.''' if not 0 <= height <= self.bp.db_height: - raise self.RPCError('height {:,d} out of range'.format(height)) + raise JSONRPC.RPCError('height {:,d} out of range'.format(height)) if height in self.header_cache: return self.header_cache[height] header = self.bp.read_headers(height, 1)