raise an ImproperlyConfigured exception with argument string 'Path for saving emails is invalid: %r', replace '%r' with self.file_path.
raise ImproperlyConfigured ( 'Path for saving emails is invalid: %r' % self . file_path )