Skip to content

Commit 0b5edbc

Browse files
committed
Merge PR sooperset#664: Fixed AttributeError problem
2 parents a2402c7 + 08061ae commit 0b5edbc

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/mcp_atlassian/servers/dependencies.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,10 @@ def _create_user_config_for_fetcher(
9696

9797
# For minimal OAuth config (user-provided tokens), use empty strings for client credentials
9898
oauth_config_for_user = OAuthConfig(
99-
client_id=global_oauth_cfg.client_id if global_oauth_cfg.client_id else "",
100-
client_secret=global_oauth_cfg.client_secret
101-
if global_oauth_cfg.client_secret
102-
else "",
103-
redirect_uri=global_oauth_cfg.redirect_uri
104-
if global_oauth_cfg.redirect_uri
105-
else "",
106-
scope=global_oauth_cfg.scope if global_oauth_cfg.scope else "",
99+
client_id=getattr(global_oauth_cfg, "client_id", ""),
100+
client_secret=getattr(global_oauth_cfg, "client_secret", ""),
101+
redirect_uri=getattr(global_oauth_cfg, "redirect_uri", ""),
102+
scope=getattr(global_oauth_cfg, "scope", ""),
107103
access_token=user_access_token,
108104
refresh_token=None,
109105
expires_at=None,

0 commit comments

Comments
 (0)