kopia lustrzana https://github.com/halcy/Mastodon.py
fix NameError: name 'x' is not defined in __json_date_parse()
rodzic
5d7ca19c30
commit
649b6cabe0
|
@ -3569,7 +3569,7 @@ class Mastodon:
|
||||||
else:
|
else:
|
||||||
json_object[k] = dateutil.parser.parse(v)
|
json_object[k] = dateutil.parser.parse(v)
|
||||||
except:
|
except:
|
||||||
if isinstance(v, str) and len(x.strip()) == 0:
|
if isinstance(v, str) and len(v.strip()) == 0:
|
||||||
# Pleroma bug workaround: Empty string becomes start of epoch
|
# Pleroma bug workaround: Empty string becomes start of epoch
|
||||||
json_object[k] = datetime.datetime.fromtimestamp(0)
|
json_object[k] = datetime.datetime.fromtimestamp(0)
|
||||||
else:
|
else:
|
||||||
|
|
Ładowanie…
Reference in New Issue