Skip to content

Commit

Permalink
[twitter tool]
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Jan 24, 2025
1 parent 16e2c05 commit c079d5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "swarms-tools"
version = "0.1.2"
version = "0.1.3"
description = "Paper - Pytorch"
license = "MIT"
authors = ["Kye Gomez <[email protected]>"]
Expand Down
7 changes: 1 addition & 6 deletions swarms_tools/social_media/twitter_tool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging
import os
import subprocess
from typing import Any, Callable, Dict, List, Optional
Expand Down Expand Up @@ -53,10 +52,6 @@ def __init__(self, options: Dict[str, Any]) -> None:
"quote_tweet": self._quote_tweet,
}

# Configure logging
logging.basicConfig(level=logging.INFO)
self.logger: logging.Logger = logging.getLogger(__name__)

@property
def available_functions(self) -> List[str]:
"""
Expand Down Expand Up @@ -98,7 +93,7 @@ def _get_metrics(self) -> Dict[str, int]:
user_fields=["public_metrics"]
)
if not user or not user.data:
self.logger.warning("Failed to fetch user metrics.")
print("Failed to fetch user metrics.")
return {}
public_metrics = user.data.public_metrics
return {
Expand Down

0 comments on commit c079d5f

Please sign in to comment.