From 62f903cb8981de8b92c7b2b4aaa338aea990d59b Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Thu, 29 Mar 2001 16:46:56 +0000 Subject: check if method is defined first --- anaconda | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anaconda b/anaconda index 2ba9aae2a..b5dd2b64c 100755 --- a/anaconda +++ b/anaconda @@ -346,7 +346,7 @@ elif (display_mode == 't'): or (method and len (method) >= 7 and method[:7] == "http://")): print _("Graphical installation not available for %s installs. " "Starting text mode.") % (string.split(method, ':')[0],) - elif len (method) >= 5 and method[:5] == "hd://": + elif method and len (method) >= 5 and method[:5] == "hd://": print _("Graphical installation not available for hard drive installs. " "Starting text mode.") from text import InstallInterface -- cgit