diff --git a/tests.d/50_website.py b/tests.d/50_website.py index 8300d81..9f6e50b 100755 --- a/tests.d/50_website.py +++ b/tests.d/50_website.py @@ -1,7 +1,8 @@ #!/usr/bin/env python import urllib2, sys -pages=["https://csclub.uwaterloo.ca", "http://mirror.csclub.uwaterloo.ca"] +pages=["https://csclub.uwaterloo.ca", + "http://mirror.csclub.uwaterloo.ca"] for page in pages: try: @@ -13,9 +14,10 @@ for page in pages: if not"Computer Science Club" in page: print "FAIL, homepage doesn't mention Computer Science Club" sys.exit(3) - # So read() didn't throw an exception, nor did opening, - # and we have enough data, so likely good. - sys.exit(0) except urllib2.URLError as e: print "FAIL, exception ", e sys.exit(1) + +# So read() didn't throw an exception, nor did opening, +# and we have enough data, so likely good. +sys.exit(0)