Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -337,7 +337,7 @@ def _prepare_gmail_message(
|
|||||||
.replace("\r", "")
|
.replace("\r", "")
|
||||||
.replace("\n", "")
|
.replace("\n", "")
|
||||||
.replace("\x00", "")
|
.replace("\x00", "")
|
||||||
)
|
) or "attachment"
|
||||||
|
|
||||||
part.add_header(
|
part.add_header(
|
||||||
"Content-Disposition", "attachment", filename=safe_filename
|
"Content-Disposition", "attachment", filename=safe_filename
|
||||||
|
|||||||
Reference in New Issue
Block a user