one more exception caught, more verbose sys.exit

This commit is contained in:
Brian S. Stephan 2010-07-24 10:14:47 -05:00
parent 398514a422
commit ea0610409a
1 changed files with 3 additions and 1 deletions

View File

@ -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