From ea0610409a0161d630a060b15d97c6eabdfaa992 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 24 Jul 2010 10:14:47 -0500 Subject: [PATCH] one more exception caught, more verbose sys.exit --- dr.botzo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dr.botzo.py b/dr.botzo.py index 1c2b819..b21d9ff 100755 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -15,6 +15,8 @@ try: nick = config.get('IRC', 'nick') ircname = config.get('IRC', 'name') except NoSectionError as e: - sys.exit(str(e)) + sys.exit("Aborted due to error with necessary configuration: " + str(e)) +except NoOptionError as e: + sys.exit("Aborted due to error with necessary configuration: " + str(e)) # vi:tabstop=4:expandtab:autoindent