Skip to content

Commit bc6071c

Browse files
Jason BoblickJason Boblick
authored andcommitted
rename variable to better match purpose
1 parent a918ba1 commit bc6071c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/communications/destination_email.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, params_dict):
5656
self.auth_enabled = read_bool_from_config('auth_enabled', params_dict)
5757
self.login = params_dict.get('login')
5858
self.tls = read_bool_from_config('tls', params_dict)
59-
self.include_files = read_bool_from_config('include_files', params_dict, default=True)
59+
self.attach_files = read_bool_from_config('attach_files', params_dict, default=True)
6060

6161
self.password = self.read_password(params_dict)
6262
self.to_addresses = split_addresses(self.to_addresses)
@@ -104,7 +104,7 @@ def send(self, title, body, files=None):
104104
if self.auth_enabled:
105105
server.login(self.login, self.password)
106106

107-
if self.include_files and files:
107+
if self.attach_files and files:
108108
for file in files:
109109
filename = file.filename
110110
part = MIMEApplication(file.content, Name=filename)

0 commit comments

Comments
 (0)