raise an ImproperlyConfigured exception with argument string 'Path for saving email messages exists, but is not a directory: %s', replace '%s' with self.file_path.
raise ImproperlyConfigured ( 'Path for saving email messages exists, but is not a directory: %s' % self . file_path )