minor changes

This commit is contained in:
mrsu 2024-02-12 01:21:50 +00:00
parent e4c42de74c
commit ea34a0ef32
2 changed files with 2 additions and 4 deletions

View File

@ -56,8 +56,7 @@ def send_email(event, next_alert, next_event, config):
# Send email here
server.sendmail(sender_email, receiver_email, text)
print("Message sent via email")
return
return print("Message sent via email")
except Exception as e:
# Print any error messages to stdout
print("An error occured when sending alert via email, please check your config. Message: {}".format(e))

View File

@ -1,6 +1,6 @@
from pathlib import Path
from icalendar import Calendar, Event
import toml, argparse, os, sys, hashlib, json, pytz, glob, os, time
import toml, argparse, os, sys, hashlib, json, pytz, os, time
from dateutil.relativedelta import relativedelta
from dateutil.rrule import rrulestr
import datetime as dt
@ -139,7 +139,6 @@ class FileChangeHandler(FileSystemEventHandler):
del self.event_list[i]
break
class RecurringEventGenerator:
def __init__(self, dtstart, rrule):
self.dtstart = dtstart