diff options
Diffstat (limited to 'django/core')
| -rw-r--r-- | django/core/mail/backends/filebased.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/django/core/mail/backends/filebased.py b/django/core/mail/backends/filebased.py index b30bb67e92..498d86fba8 100644 --- a/django/core/mail/backends/filebased.py +++ b/django/core/mail/backends/filebased.py @@ -17,9 +17,6 @@ class EmailBackend(ConsoleEmailBackend): self.file_path = file_path else: self.file_path = getattr(settings, 'EMAIL_FILE_PATH', None) - # Make sure self.file_path is a string. - if not isinstance(self.file_path, str): - raise ImproperlyConfigured('Path for saving emails is invalid: %r' % self.file_path) self.file_path = os.path.abspath(self.file_path) try: os.makedirs(self.file_path, exist_ok=True) |
