Skip to content
Snippets Groups Projects
Commit f62131dc authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

Fix python 2.7

parent 5f156fdf
No related branches found
No related tags found
No related merge requests found
...@@ -566,7 +566,7 @@ class Wallet(object): ...@@ -566,7 +566,7 @@ class Wallet(object):
""" Obtain all accounts associated with a public key """ Obtain all accounts associated with a public key
""" """
if not self.steem.is_connected(): if not self.steem.is_connected():
return None raise OfflineHasNoRPCException("No RPC available in offline mode!")
self.steem.rpc.set_next_node_on_empty_reply(False) self.steem.rpc.set_next_node_on_empty_reply(False)
if self.steem.rpc.get_use_appbase(): if self.steem.rpc.get_use_appbase():
names = self.steem.rpc.get_key_references({'keys': [pub]}, api="account_by_key")["accounts"] names = self.steem.rpc.get_key_references({'keys': [pub]}, api="account_by_key")["accounts"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment