Skip to content

Commit

Permalink
Fix python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
holgern committed Jun 3, 2018
1 parent 5f156fd commit f62131d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beem/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def getAccountsFromPublicKey(self, pub):
""" Obtain all accounts associated with a public key
"""
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)
if self.steem.rpc.get_use_appbase():
names = self.steem.rpc.get_key_references({'keys': [pub]}, api="account_by_key")["accounts"]
Expand Down

0 comments on commit f62131d

Please sign in to comment.