From 8c3fd1200578fc4d13ec1f7188753b56665e0f6e Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sat, 18 Nov 2023 15:53:14 +0100 Subject: [PATCH] Fix style --- toot/entities.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/toot/entities.py b/toot/entities.py index d5fffd3..2d5279c 100644 --- a/toot/entities.py +++ b/toot/entities.py @@ -270,7 +270,6 @@ class Status: # because we count on it always existing, set it to current datetime. # Possible underlying issue: # https://git.pleroma.social/pleroma/pleroma/-/issues/2851 - created_at = obj.get("created_at") if not obj["created_at"]: obj["created_at"] = datetime.now().astimezone().isoformat() return obj @@ -399,8 +398,8 @@ class ConversionError(Exception): field_value: Optional[str] ): super().__init__( - f"Failed converting field `{data_class.__name__}.{field_name}` " + - f"of type `{field_type.__name__}` from value {field_value!r}" + f"Failed converting field `{data_class.__name__}.{field_name}` " + + f"of type `{field_type.__name__}` from value {field_value!r}" )