Son NK 5 년 전
부모
커밋
bc3a3dae02
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      email_handler.py

+ 3 - 1
email_handler.py

@@ -551,7 +551,9 @@ def handle_bounce(
     file_path = None
     if orig_msg:
         file_path = f"refused-emails/{random_name}.eml"
-        s3.upload_email_from_bytesio(file_path, BytesIO(orig_msg.as_bytes()), random_name)
+        s3.upload_email_from_bytesio(
+            file_path, BytesIO(orig_msg.as_bytes()), random_name
+        )
 
     refused_email = RefusedEmail.create(
         path=file_path, full_report_path=full_report_path, user_id=user.id