aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-05-11 12:57:01 +0200
committerLorenz Diener <[email protected]>2019-05-11 12:57:01 +0200
commitc442af7715f81c6558f8e356635a729905df3da7 (patch)
tree58e0d98062ebaaffe2a3f79a6071f08b75047eb0 /mastodon
parentcc2089795f03b1483aea5e7611b21d106754b4a0 (diff)
downloadmastodon.py-c442af7715f81c6558f8e356635a729905df3da7.tar.gz
Fix date parsing failing due to missing field for int parsing
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py2
1 files changed, 1 insertions, 1 deletions
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:
2579 """ 2579 """
2580 Converts json string numerals to native python bignums. 2580 Converts json string numerals to native python bignums.
2581 """ 2581 """
2582 for key in ('id', 'week', 'in_reply_to_id', 'in_reply_to_account_id', 'logins', 'registrations', 'statuses'): 2582 for key in ('id', 'week', 'in_reply_to_id', 'in_reply_to_account_id', 'logins', 'registrations', 'statuses', 'day'):
2583 if (key in json_object and isinstance(json_object[key], six.text_type)): 2583 if (key in json_object and isinstance(json_object[key], six.text_type)):
2584 try: 2584 try:
2585 json_object[key] = int(json_object[key]) 2585 json_object[key] = int(json_object[key])
Powered by cgit v1.2.3 (git 2.41.0)