Skip to content

Commit ae62301

Browse files
committed
fix: implement corretion to setter of attatchments
1 parent 13b0761 commit ae62301

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

email_hub_sdk/adapters.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def subject(self, value: str):
6060

6161
@property
6262
def to(self):
63-
return self["To"].split(COMMASPACE)
63+
return self["To"].split(COMMASPACE) or []
6464

6565
@to.setter
6666
def to(self, value: list[str]):
@@ -72,7 +72,7 @@ def to(self, value: list[str]):
7272

7373
@property
7474
def cc(self):
75-
return self["Cc"].split(COMMASPACE)
75+
return self["Cc"].split(COMMASPACE) or []
7676

7777
@cc.setter
7878
def cc(self, value: list[str]):
@@ -84,7 +84,7 @@ def cc(self, value: list[str]):
8484

8585
@property
8686
def bcc(self):
87-
return self["Bcc"].split(COMMASPACE)
87+
return self["Bcc"].split(COMMASPACE) or []
8888

8989
@bcc.setter
9090
def bcc(self, value: list[str]):

0 commit comments

Comments
 (0)