diff --git a/discord/message.py b/discord/message.py index 72e886ccb..d14cfce0b 100644 --- a/discord/message.py +++ b/discord/message.py @@ -1688,12 +1688,11 @@ class Message(PartialMessage, Hashable): # This updates the poll so it has the counts, if the message # was previously cached. - self.poll: Optional[Poll] = state._get_poll(self.id) - if self.poll is None: - try: - self.poll = Poll._from_data(data=data['poll'], message=self, state=state) - except KeyError: - pass + self.poll: Optional[Poll] = None + try: + self.poll = Poll._from_data(data=data['poll'], message=self, state=state) + except KeyError: + self.poll = state._get_poll(self.id) try: # If the channel doesn't have a guild attribute, we handle that