minor fixing

This commit is contained in:
Volkan Şahin 2016-10-19 12:13:35 +03:00
parent 5c5a332e09
commit f4cec96f0c

View file

@ -46,7 +46,10 @@ class Mail:
self.server.quit()
self.logger.debug('Disconnected')
def send_mail(self, subject, message, files=[]):
def send_mail(self, subject, message, files=None):
if files is None:
files = []
msg = MIMEMultipart()
msg['Date'] = formatdate(localtime=True)