From 19341244fb0a313a1743cbae9c3dc5cbbcd3ddb0 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Tue, 26 Jan 2016 00:35:49 -0500 Subject: Add a server identifier to the settings file. --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 22fc2ac..0907da0 100755 --- a/main.py +++ b/main.py @@ -39,7 +39,8 @@ if __name__ == "__main__": not config.get('email', 'imapserver'): print "Sending email address is not configured" sys.exit(1) - if not config.get('alertcontact', 'default'): + if not config.get('general', 'servername') or \ + not config.get('general', 'alertcontact'): print "Default alert contact is not configured" sys.exit(1) -- cgit v1.2.3