mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-27 18:33:12 +01:00
Fix formatting per flake8
This commit is contained in:
parent
b78be0d71f
commit
8d7ba415fa
@ -595,6 +595,7 @@ def get_email_body_from_part_payload(part) -> str:
|
||||
part.get_payload(decode=False)
|
||||
)
|
||||
|
||||
|
||||
def attempt_body_extract_from_html(message: str) -> str:
|
||||
mail = BeautifulSoup(str(message), "html.parser")
|
||||
beautiful_body = mail.find('body')
|
||||
@ -610,13 +611,14 @@ def attempt_body_extract_from_html(message: str) -> str:
|
||||
body = ""
|
||||
return body, full_body
|
||||
|
||||
|
||||
def extract_part_data(
|
||||
part: Message,
|
||||
counter: int,
|
||||
ticket_id: int,
|
||||
files: List,
|
||||
logger: logging.Logger
|
||||
) -> Tuple[str, str]:
|
||||
) -> Tuple[str, str]:
|
||||
name = part.get_filename()
|
||||
if name:
|
||||
name = email.utils.collapse_rfc2231_value(name)
|
||||
@ -682,6 +684,7 @@ def extract_part_data(
|
||||
logger.debug("Found MIME attachment %s", name)
|
||||
return part_body, part_full_body
|
||||
|
||||
|
||||
def object_from_message(message: str,
|
||||
queue: Queue,
|
||||
logger: logging.Logger
|
||||
|
Loading…
Reference in New Issue
Block a user