aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon/Mastodon.py')
-rw-r--r--mastodon/Mastodon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index f0d9cc5..2cb125f 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -3569,7 +3569,7 @@ class Mastodon:
3569 else: 3569 else:
3570 json_object[k] = dateutil.parser.parse(v) 3570 json_object[k] = dateutil.parser.parse(v)
3571 except: 3571 except:
3572 if isinstance(v, str) and len(x.strip()) == 0: 3572 if isinstance(v, str) and len(v.strip()) == 0:
3573 # Pleroma bug workaround: Empty string becomes start of epoch 3573 # Pleroma bug workaround: Empty string becomes start of epoch
3574 json_object[k] = datetime.datetime.fromtimestamp(0) 3574 json_object[k] = datetime.datetime.fromtimestamp(0)
3575 else: 3575 else:
Powered by cgit v1.2.3 (git 2.41.0)