Fix tests

This commit is contained in:
Ivan Habunek 2022-11-29 10:08:21 +01:00
parent 1d26ecd489
commit 942dd36cd6
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ def print_status(status, width):
content = reblog['content'] if reblog else status['content']
media_attachments = reblog['media_attachments'] if reblog else status['media_attachments']
in_reply_to = status['in_reply_to_id']
poll = reblog['poll'] if reblog else status['poll']
poll = reblog.get('poll') if reblog else status.get('poll')
time = parse_datetime(status['created_at'])
time = time.strftime('%Y-%m-%d %H:%M %Z')