diff options
author | Lorenz Diener <[email protected]> | 2019-05-11 12:57:01 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-05-11 12:57:01 +0200 |
commit | c442af7715f81c6558f8e356635a729905df3da7 (patch) | |
tree | 58e0d98062ebaaffe2a3f79a6071f08b75047eb0 /mastodon | |
parent | cc2089795f03b1483aea5e7611b21d106754b4a0 (diff) | |
download | mastodon.py-c442af7715f81c6558f8e356635a729905df3da7.tar.gz |
Fix date parsing failing due to missing field for int parsing
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 2 |
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]) |