initialize settings if necessary when configuring an api client

This commit is contained in:
Jack Robison 2017-06-25 21:23:48 -04:00
parent d9ced3c6f7
commit 85cc843d36

View file

@ -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())