Skip to content

Commit

Permalink
better code style
Browse files Browse the repository at this point in the history
  • Loading branch information
the-infinity committed Jun 14, 2024
1 parent 6a86740 commit e07f6fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _get_data(self) -> bytes:
self.config_helper.get('PARK_API_BIETIGHEIM_BISSINGEN_PASSWORD'),
)
# Select default mailbox and get latest message uid
select_status, message_uid_list = imap_connection.select()
_select_status, message_uid_list = imap_connection.select()
if len(message_uid_list) == 0:
raise ImportSourceException(
source_uid=self.source_info.uid,
Expand Down Expand Up @@ -91,7 +91,7 @@ def _get_data(self) -> bytes:
)

# The raw message has an envelope and a body, we just need the body
mail_envelope, mail_body = raw_message
_mail_envelope, mail_body = raw_message
message: Message = email.message_from_bytes(mail_body, policy=policy.default.clone(linesep='\r\n'))

return self._get_csv_bytes_from_message(message)
Expand Down

0 comments on commit e07f6fa

Please sign in to comment.