Report arguments incompatible with 'using'.
(
connection=None, fail_silently=False, auth_user=None, auth_password=None
)
| 28 | |
| 29 | |
| 30 | def report_using_incompatibility( |
| 31 | connection=None, fail_silently=False, auth_user=None, auth_password=None |
| 32 | ): |
| 33 | """Report arguments incompatible with 'using'.""" |
| 34 | if connection is not None: |
| 35 | raise TypeError("'connection' is not compatible with 'using'.") |
| 36 | if fail_silently: |
| 37 | raise TypeError("'fail_silently' is not compatible with 'using'.") |
| 38 | if auth_user is not None or auth_password is not None: |
| 39 | raise TypeError( |
| 40 | "'auth_user' and 'auth_password' are not compatible with 'using'. " |
| 41 | "Set 'username' and 'password' OPTIONS in MAILERS instead." |
| 42 | ) |
| 43 | |
| 44 | |
| 45 | def warn_about_default_mailers_if_needed(): |
no outgoing calls
no test coverage detected