Skip to content

Commit fe44d5c

Browse files
fix(sticker): fix a linter oopsie
1 parent 3b07ef8 commit fe44d5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hydrogram/types/messages_and_media/sticker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ async def _parse(
152152
Type["raw.base.DocumentAttribute"], "raw.base.DocumentAttribute"
153153
],
154154
) -> "Sticker":
155-
sticker_attributes = document_attributes.get(
156-
raw.types.DocumentAttributeSticker,
157-
document_attributes[raw.types.DocumentAttributeCustomEmoji],
155+
sticker_attributes = (
156+
document_attributes.get(raw.types.DocumentAttributeSticker)
157+
or document_attributes[raw.types.DocumentAttributeCustomEmoji]
158158
)
159159

160160
image_size_attributes = document_attributes.get(raw.types.DocumentAttributeImageSize)

0 commit comments

Comments
 (0)