diff options
-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 e7ec143..bb2d9d8 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -3564,7 +3564,7 @@ class Mastodon: | |||
3564 | else: | 3564 | else: |
3565 | json_object[k] = dateutil.parser.parse(v) | 3565 | json_object[k] = dateutil.parser.parse(v) |
3566 | except: | 3566 | except: |
3567 | if isinstance(v, str) and len(x.strip()) == 0: | 3567 | if isinstance(v, str) and len(v.strip()) == 0: |
3568 | # Pleroma bug workaround: Empty string becomes start of epoch | 3568 | # Pleroma bug workaround: Empty string becomes start of epoch |
3569 | json_object[k] = datetime.datetime.fromtimestamp(0) | 3569 | json_object[k] = datetime.datetime.fromtimestamp(0) |
3570 | else: | 3570 | else: |