standardize Python exercise error messages

This commit is contained in:
Brian Hicks
2013-08-02 09:44:16 -05:00
parent 34bb18d6bd
commit 782c339a48
9 changed files with 9 additions and 12 deletions

View File

@@ -1,10 +1,7 @@
try:
import bob
except ImportError:
quit("Hey, I can't find bob.py. Create it please?")
if not hasattr(bob, 'Bob'):
quit("Don't freak out, but I can't find a class named Bob in `bob.py`. Are you sure it's here?")
raise SystemExit('Could not find bob.py. Does it exist?')
import unittest