Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bitcoin/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ def __init__(self,

def __getattr__(self, name):
if name.startswith('__') and name.endswith('__'):
# Python internal stuff
# Prevent RPC calls for non-existing python internal attribute
# access. If someone tries to get an internal attribute
# of RawProxy instance, and the instance does not have this
# attribute, we do not want the bogus RPC call to happen.
raise AttributeError

# Create a callable to do the actual call
Expand Down