Closed marc-odp closed 1 year ago
I am struggling to make my code work. I get this error :
recipients=email.dict().get("email"), AttributeError: 'list' object has no attribute 'dict'
Declaration :
class EmailSchema(BaseModel): email: List[EmailStr]
Any idea ?
I found the mistake. I was not declaring the variable correctly. Now it is ok I think. email = EmailSchema(email=['info@website.com'])
email = EmailSchema(email=['info@website.com'])
I am struggling to make my code work. I get this error :
Declaration :
Any idea ?