Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ihabunek committed Nov 29, 2022
1 parent 1d26ecd commit 942dd36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toot/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 942dd36

Please sign in to comment.