diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-07-06 05:48:03 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-07-06 05:48:03 +0000 |
commit | 8b6cbbd31b5c9eac5d16da6b2ee6eb4bae7a81b3 (patch) | |
tree | f1b9063bd3f947a3f099e4bfa0c078db3be0470f /text.py | |
parent | 3582a74ff6400e2013b1fa732384c4b52e5f5312 (diff) | |
download | anaconda-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.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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] |