summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-06 05:48:03 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-06 05:48:03 +0000
commit8b6cbbd31b5c9eac5d16da6b2ee6eb4bae7a81b3 (patch)
treef1b9063bd3f947a3f099e4bfa0c078db3be0470f /text.py
parent3582a74ff6400e2013b1fa732384c4b52e5f5312 (diff)
downloadanaconda-8b6cbbd31b5c9eac5d16da6b2ee6eb4bae7a81b3.tar.gz
anaconda-8b6cbbd31b5c9eac5d16da6b2ee6eb4bae7a81b3.tar.xz
anaconda-8b6cbbd31b5c9eac5d16da6b2ee6eb4bae7a81b3.zip
should fix the exception handler here
Diffstat (limited to 'text.py')
-rw-r--r--text.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/text.py b/text.py
index f7c1d91ea..2e351c80c 100644
--- a/text.py
+++ b/text.py
@@ -22,6 +22,7 @@ import time
import gettext_rh
import signal
import parted
+import string
from translate import _, cat, N_
from language import expandLangs
from log import log
@@ -283,12 +284,13 @@ class InstallInterface:
(parted.EXCEPTION_RETRY, N_("Retry")),
(parted.EXCEPTION_IGNORE, N_("Ignore")),
(parted.EXCEPTION_CANCEL, N_("Cancel")))
- for flag, string in flags:
+ for flag, errorstring in flags:
if exc.options & flag:
- buttons.append(_(string))
- buttonToAction[_(string)] = flag
+ buttons.append(_(errorstring))
+ buttonToAction[string.lower(errorstring)] = flag
rc = ButtonChoiceWindow(self.screen, exc.type_string, exc.message,
buttons = buttons)
+
return buttonToAction[rc]