]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/deploy.py
Refactor more boilerplate out.
[wizard.git] / wizard / deploy.py
index 22750586511e61f2773ffd3b0c7bddd11197aba1..421ba360e2551cf511e34d005ef31d3b2c462411 100644 (file)
@@ -326,9 +326,8 @@ class ProductionCopy(Deployment):
         """
         Checks if the autoinstall is viewable from the web.
         """
-        out = []
-        if not self.application.checkWeb(self, out):
-            raise WebVerificationError(out[0])
+        if not self.application.checkWeb(self):
+            raise WebVerificationError
     def fetch(self, path, post=None):
         """
         Performs a HTTP request on the website.
@@ -530,19 +529,13 @@ version %s.""" % (self.real_version, self.git_version)
 
 class WebVerificationError(Error):
     """Could not access the application on the web"""
-    #: Contents of web page access
-    contents = None
-    def __init__(self, contents):
-        self.contents = contents
     def __str__(self):
         return """
 
 ERROR: We were not able to access the application on the
 web.  This may indicate that the website is behind
-authentication on the htaccess level.  The contents
-of the page were:
-
-%s""" % self.contents
+authentication on the htaccess level.  You can find
+the contents of the page from the debug backtraces."""
 
 class UnknownWebPath(Error):
     """Could not determine application's web path."""