We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e191f0 commit 65377c7Copy full SHA for 65377c7
bitcoin/rpc.py
@@ -289,7 +289,10 @@ def __init__(self,
289
290
def __getattr__(self, name):
291
if name.startswith('__') and name.endswith('__'):
292
- # Python internal stuff
+ # Prevent RPC calls for non-existing python internal attribute
293
+ # access. If someone tries to get an internal attribute
294
+ # of RawProxy instance, and the instance does not have this
295
+ # attribute, we do not want the bogus RPC call to happen.
296
raise AttributeError
297
298
# Create a callable to do the actual call
0 commit comments