From c442af7715f81c6558f8e356635a729905df3da7 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 11 May 2019 12:57:01 +0200 Subject: Fix date parsing failing due to missing field for int parsing --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 174e798..4373acd 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -2579,7 +2579,7 @@ class Mastodon: """ Converts json string numerals to native python bignums. """ - for key in ('id', 'week', 'in_reply_to_id', 'in_reply_to_account_id', 'logins', 'registrations', 'statuses'): + for key in ('id', 'week', 'in_reply_to_id', 'in_reply_to_account_id', 'logins', 'registrations', 'statuses', 'day'): if (key in json_object and isinstance(json_object[key], six.text_type)): try: json_object[key] = int(json_object[key]) -- cgit v1.2.3