kopia lustrzana https://github.com/ihabunek/toot
Fix style
rodzic
4a3b14313c
commit
8c3fd12005
|
@ -270,7 +270,6 @@ class Status:
|
||||||
# because we count on it always existing, set it to current datetime.
|
# because we count on it always existing, set it to current datetime.
|
||||||
# Possible underlying issue:
|
# Possible underlying issue:
|
||||||
# https://git.pleroma.social/pleroma/pleroma/-/issues/2851
|
# https://git.pleroma.social/pleroma/pleroma/-/issues/2851
|
||||||
created_at = obj.get("created_at")
|
|
||||||
if not obj["created_at"]:
|
if not obj["created_at"]:
|
||||||
obj["created_at"] = datetime.now().astimezone().isoformat()
|
obj["created_at"] = datetime.now().astimezone().isoformat()
|
||||||
return obj
|
return obj
|
||||||
|
@ -399,8 +398,8 @@ class ConversionError(Exception):
|
||||||
field_value: Optional[str]
|
field_value: Optional[str]
|
||||||
):
|
):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
f"Failed converting field `{data_class.__name__}.{field_name}` " +
|
f"Failed converting field `{data_class.__name__}.{field_name}` "
|
||||||
f"of type `{field_type.__name__}` from value {field_value!r}"
|
+ f"of type `{field_type.__name__}` from value {field_value!r}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue