Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'PromotedTweet' object has no attribute '__name__' #273

Open
keame opened this issue Jan 18, 2021 · 2 comments
Open

AttributeError: 'PromotedTweet' object has no attribute '__name__' #273

keame opened this issue Jan 18, 2021 · 2 comments

Comments

@keame
Copy link

keame commented Jan 18, 2021

File "E:\workspace\twitter_server\app\service\ad_promoted_tweets_service.py", line 32, in create_ad_promoted_tweet
promoted_tweet.save()
File "C:\Users\keame\Envs\twitter_server\lib\site-packages\twitter_ads\utils.py", line 97, in wrapper
method = "{}.{}".format(str(args[0].name), str(decorated.name))
AttributeError: 'PromotedTweet' object has no attribute 'name'

@tushdante
Copy link
Collaborator

Hey @keame - can you please describe the issue along with steps to reproduce?

@keame
Copy link
Author

keame commented Jan 20, 2021

@tushdante think you!The reason for this problem is that the save() method is deprecated.

@Deprecated('This method has been deprecated and will no longer be available '
            'in the next major version update. Please use PromotedTweet.attach() '
            'method instead.')
def save(self):
            pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants