Skip to content

Commit

Permalink
Fixed twikit_async.upload_media
Browse files Browse the repository at this point in the history
  • Loading branch information
d60 committed May 1, 2024
1 parent 449fe64 commit c929dac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion twikit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
A Python library for interacting with the Twitter API.
"""

__version__ = '1.5.11'
__version__ = '1.5.12'

from .bookmark import BookmarkFolder
from .client import Client
Expand Down
2 changes: 1 addition & 1 deletion twikit/twikit_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ async def upload_media(

if wait_for_completion:
while True:
state = self.check_media_status(media_id)
state = await self.check_media_status(media_id)
processing_info = state['processing_info']
if 'error' in processing_info:
raise InvalidMedia(processing_info['error'].get('message'))
Expand Down

0 comments on commit c929dac

Please sign in to comment.