Skip to content

Commit ebe27a2

Browse files
committed
fix: async bug in twitter
1 parent f99e281 commit ebe27a2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

skills/twitter/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _get_error_with_username(self, error_msg: str) -> str:
3232
Returns:
3333
Error message with username if available.
3434
"""
35-
username = self.twitter.self_username()
35+
username = self.twitter.self_username
3636
if username:
3737
return f"Error for Twitter user @{username}: {error_msg}"
3838
return error_msg

skills/twitter/get_mentions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def _arun(self) -> TwitterGetMentionsOutput:
8484
),
8585
)
8686

87-
user_id = self.twitter.self_id()
87+
user_id = self.twitter.self_id
8888
if not user_id:
8989
return TwitterGetMentionsOutput(
9090
mentions=[],

skills/twitter/get_timeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async def _arun(self, max_results: int = 10) -> TwitterGetTimelineOutput:
9292
),
9393
)
9494

95-
user_id = self.twitter.self_id()
95+
user_id = self.twitter.self_id
9696
if not user_id:
9797
return TwitterGetTimelineOutput(
9898
tweets=[],

0 commit comments

Comments
 (0)