aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradbenitez <[email protected]>2022-11-24 14:53:36 -0500
committeradbenitez <[email protected]>2022-11-24 14:53:36 -0500
commit649b6cabe0a324bce5b777e22d1acaeae2c87aaf (patch)
tree6e0ff67544faf3cde640987f72380e009119ec9c
parent5d7ca19c30dc6579bf29610fe815b822889978e6 (diff)
downloadmastodon.py-649b6cabe0a324bce5b777e22d1acaeae2c87aaf.tar.gz
fix NameError: name 'x' is not defined in __json_date_parse()
-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)