forked from LBRYCommunity/lbry-sdk
initialize settings if necessary when configuring an api client
This commit is contained in:
parent
d9ced3c6f7
commit
85cc843d36
1 changed files with 2 additions and 0 deletions
|
@ -158,5 +158,7 @@ class AuthAPIClient(object):
|
|||
class LBRYAPIClient(object):
|
||||
@staticmethod
|
||||
def get_client():
|
||||
if not conf.settings:
|
||||
conf.initialize_settings()
|
||||
return AuthAPIClient.config() if conf.settings['use_auth_http'] else \
|
||||
JSONRPCProxy.from_url(conf.settings.get_api_connection_string())
|
||||
|
|
Loading…
Reference in a new issue