[rhel7] Fix a bad cherry-pick in an error handler
David Shea
dshea at redhat.com
Wed Nov 19 15:11:28 UTC 2014
Related: rhbz#1057032
---
pyanaconda/errors.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/errors.py b/pyanaconda/errors.py
index e2da7f1..c7197e8 100644
--- a/pyanaconda/errors.py
+++ b/pyanaconda/errors.py
@@ -254,8 +254,9 @@ class ErrorHandler(object):
self.ui.showDetailedError(message, details)
return ERROR_RAISE
- def _passwordCryptErrorHandler(self, exn):
- message = _("Unable to encrypt password: unsupported algorithm %s") % exn.algo
+ def _passwordCryptErrorHandler(self, *args, **kwargs):
+ message = _("Unable to encrypt password: unsupported algorithm %s") % \
+ kwargs["exception"].algo
self.ui.showError(message)
return ERROR_RAISE
--
2.1.0
More information about the anaconda-patches
mailing list