aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorTom Ritter <tom@ritter.vg>2016-01-26 00:35:49 -0500
committerTom Ritter <tom@ritter.vg>2016-01-26 00:35:49 -0500
commit19341244fb0a313a1743cbae9c3dc5cbbcd3ddb0 (patch)
treef78c4f5f4379b43c6cff0a26bf5b5b6403fb27f1 /main.py
parent109e568f7211d910155d7cd2334fa956d769e22a (diff)
Add a server identifier to the settings file.
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py3
1 files changed, 2 insertions, 1 deletions
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)