- r_values['Created'] = calendar.timegm(time.strptime(r_values['Created']))
+ if 'Created' in r_values:
+ r_values['Created'] = calendar.timegm(time.strptime(r_values['Created']))
+ else:
+ r_values['Created'] = calendar.timegm(time.localtime())
+
for mta in [MTA, 'golf.cs.princeton.edu']:
try:
# This is normal operation
for mta in [MTA, 'golf.cs.princeton.edu']:
try:
# This is normal operation
server.sendmail(FROM, to, msg)
if config.bcc and not config.debug:
server.sendmail(FROM, config.email, msg)
server.sendmail(FROM, to, msg)
if config.bcc and not config.debug:
server.sendmail(FROM, config.email, msg)