Skip to content

Commit 07afc89

Browse files
karbassiCopilot
andauthored
Update coderdojochi/util.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e7aa510 commit 07afc89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

coderdojochi/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def email(
2626
unsub_group_id=None,
2727
):
2828
if not (subject and template_name and recipients):
29-
raise NameError
29+
raise ValueError("Missing required parameters: 'subject', 'template_name', and 'recipients' are all required.")
3030

3131
if not isinstance(recipients, list):
3232
raise TypeError("recipients must be a list")

0 commit comments

Comments
 (0)