Skip to content

Commit 55bda71

Browse files
committed
bug: Throw error when there is no email 🐛
1 parent bcb6a15 commit 55bda71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class Mail:
191191
data: Optional[List[Datum]] = None
192192

193193
def hasData(self) -> bool:
194-
return self.data is not []
194+
return self.data is []
195195

196196
@staticmethod
197197
def from_dict(obj: Any) -> 'Mail':

0 commit comments

Comments
 (0)