Skip to content

Commit

Permalink
fix: exception name
Browse files Browse the repository at this point in the history
  • Loading branch information
davisilvarafacho committed Sep 10, 2024
1 parent ccf838b commit 91707f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/system/core/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ def add_destinatario(self, destinatario):
return

if len(self._destinatarios) == self.MAX_RECIPIENTS:
raise self.InvalidNumberRecipients(
raise self.InvalidRecipientsNumber(
"O número máximo de destinatários é 200")

self._destinatarios.append(destinatario)

def send(self):
if len(self._destinatarios) == 0:
raise self.InvalidNumberRecipients("Informe ao menos um destinatário")
raise self.InvalidRecipientsNumber("Informe ao menos um destinatário")

assert self.corpo is None or self._template_path is None, (
"Os argumentos 'corpo' ou 'template' deve ser configurados"
Expand Down

0 comments on commit 91707f7

Please sign in to comment.