[PATCH 4/5] Don't implicitly unpack exceptions. That won't be supporetd in the future.
Chris Lumens
clumens at redhat.com
Tue Aug 20 18:42:13 UTC 2013
---
pyanaconda/ui/gui/spokes/user.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/user.py b/pyanaconda/ui/gui/spokes/user.py
index 785e1da..aa7f8cf 100644
--- a/pyanaconda/ui/gui/spokes/user.py
+++ b/pyanaconda/ui/gui/spokes/user.py
@@ -411,13 +411,13 @@ class UserSpoke(FirstbootSpokeMixIn, NormalSpoke):
try:
self._error = validatePassword(pw, confirm)
- except PWQError as (_e, msg):
+ except PWQError as e:
if pw == self._oldweak:
# We got a second attempt with the same weak password
pass
else:
self._error = _("You have provided a weak password: %s. "
- " Press Done again to use anyway.") % msg
+ " Press Done again to use anyway.") % e.message
self._oldweak = pw
return False
--
1.8.1.2
More information about the anaconda-patches
mailing list