[rhel7-branch] Actually show an error message for bad passwords in TUI. (#1066988)

David Shea dshea at redhat.com
Wed Sep 17 20:04:49 UTC 2014


On 09/17/2014 03:36 PM, Samantha N. Bueno wrote:
> Resolves: rhbz#1066988
> ---
>   pyanaconda/ui/tui/spokes/__init__.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/pyanaconda/ui/tui/spokes/__init__.py b/pyanaconda/ui/tui/spokes/__init__.py
> index 39b47b9..ef9132d 100644
> --- a/pyanaconda/ui/tui/spokes/__init__.py
> +++ b/pyanaconda/ui/tui/spokes/__init__.py
> @@ -121,7 +121,7 @@ class EditTUIDialog(NormalTUISpoke):
>                   if strength < 50:
>                       raise PWQError("The password you have provided is weak.")
>               except PWQError as e:
> -                error = _("You have provided a weak password: %s. " % e.message)
> +                error = _("You have provided a weak password: %s. " % e[1])
>                   error += _("\nWould you like to use it anyway?")
>                   question_window = YesNoDialog(self._app, error)
>                   self._app.switch_screen_modal(question_window)

That PWQError type is the worst. Ack.


More information about the anaconda-patches mailing list