mirror of
https://github.com/django/django.git
synced 2025-12-04 17:11:49 +00:00
Start attacking E231 violations
This commit is contained in:
parent
382d324ccc
commit
9bf5610890
31 changed files with 92 additions and 90 deletions
|
|
@ -14,7 +14,7 @@ class EmailBackend(ConsoleEmailBackend):
|
|||
if 'file_path' in kwargs:
|
||||
self.file_path = kwargs.pop('file_path')
|
||||
else:
|
||||
self.file_path = getattr(settings, 'EMAIL_FILE_PATH',None)
|
||||
self.file_path = getattr(settings, 'EMAIL_FILE_PATH', None)
|
||||
# Make sure self.file_path is a string.
|
||||
if not isinstance(self.file_path, six.string_types):
|
||||
raise ImproperlyConfigured('Path for saving emails is invalid: %r' % self.file_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue