Skip to content

Commit 937ec9b

Browse files
committed
fix findall call
1 parent dc6a635 commit 937ec9b

File tree

1 file changed

+1
-1
lines changed
  • ephios/core/services/mail

1 file changed

+1
-1
lines changed

ephios/core/services/mail/cid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def convert_image_to_cid(image_src, cid_id, verify_ssl=True):
8686
try:
8787
if image_src.startswith("data:image/"):
8888
image_type, image_content = image_src.split(",", 1)
89-
image_type = re.find_all(r"data:image/(\w+);base64", image_type)[0]
89+
image_type = re.findall(r"data:image/(\w+);base64", image_type)[0]
9090
mime_image = MIMEImage(image_content, _subtype=image_type, _encoder=encoder_linelength)
9191
mime_image.add_header("Content-Transfer-Encoding", "base64")
9292
elif image_src.startswith("data:"):

0 commit comments

Comments
 (0)