File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
libraries/botbuilder-core/botbuilder/core Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1055,15 +1055,15 @@ async def create_connector_client(
1055
1055
def _get_or_create_connector_client (
1056
1056
self , service_url : str , credentials : AppCredentials
1057
1057
) -> ConnectorClient :
1058
+ if not credentials :
1059
+ credentials = MicrosoftAppCredentials .empty ()
1060
+
1058
1061
# Get ConnectorClient from cache or create.
1059
1062
client_key = BotFrameworkAdapter .key_for_connector_client (
1060
1063
service_url , credentials .microsoft_app_id , credentials .oauth_scope
1061
1064
)
1062
1065
client = self ._connector_client_cache .get (client_key )
1063
1066
if not client :
1064
- if not credentials :
1065
- credentials = MicrosoftAppCredentials .empty ()
1066
-
1067
1067
client = ConnectorClient (credentials , base_url = service_url )
1068
1068
client .config .add_user_agent (USER_AGENT )
1069
1069
self ._connector_client_cache [client_key ] = client
You can’t perform that action at this time.
0 commit comments