Skip to content
Browse files

Barf when missing config

  • Loading branch information...
1 parent 96cadca commit 51f732e57cd6e195a3bc63056d9fde5fec2cdea4 @richo richo committed Sep 27, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 config.py
View
2 config.py
@@ -74,3 +74,5 @@ def passthru(val):
except ValueError: #Probably port didn't translate
raise InvalidConfig
+ except KeyError: #Didn't have a required key
+ raise InvalidConfig, "Missing required key: %s" % (name)

0 comments on commit 51f732e

Please sign in to comment.
Something went wrong with that request. Please try again.