Skip to content

Commit fa07d59

Browse files
committed
Remove JSONRPCException = JSONRPCError alias
A quick search on GitHub didn't return any code that actually used this alias.
1 parent ccca15b commit fa07d59

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

bitcoin/rpc.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,11 @@ class JSONRPCError(Exception):
6363
"""JSON-RPC protocol error"""
6464

6565
def __init__(self, rpc_error):
66-
super(JSONRPCException, self).__init__(
66+
super(JSONRPCError, self).__init__(
6767
'msg: %r code: %r' %
6868
(rpc_error['message'], rpc_error['code']))
6969
self.error = rpc_error
7070

71-
72-
# 0.4.0 compatibility
73-
JSONRPCException = JSONRPCError
74-
75-
7671
class BaseProxy(object):
7772
"""Base JSON-RPC proxy class. Contains only private methods; do not use
7873
directly."""
@@ -627,7 +622,6 @@ def removenode(self, node):
627622

628623
__all__ = (
629624
'JSONRPCError',
630-
'JSONRPCException',
631625
'RawProxy',
632626
'Proxy',
633627
)

release-notes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ v0.7.0-SNAPSHOT (not yet released!)
66

77
Breaking API changes:
88

9-
* The 'cooked' CScript iterator now returns OP_0 for the empty binary string
9+
* The 'cooked' CScript iterator now returns `OP_0` for the empty binary string
1010
rather than b''
1111

12+
* The alias `JSONRPCException = JSONRPCError` has been removed. This alias was
13+
added for compatibility with v0.4.0 of python-bitcoinlib.
14+
1215
Bugfixes:
1316

1417
* Fixed a spurious AttributeError when bitcoin.rpc.Proxy() fails.

0 commit comments

Comments
 (0)