[PATCH 2/3] Fix the error message when removing a layout not added before

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 pyanaconda/xklavier.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/xklavier.py b/pyanaconda/xklavier.py
index da95794..4631e0a 100755
--- a/pyanaconda/xklavier.py
+++ b/pyanaconda/xklavier.py
@@ -224,7 +224,9 @@ class XklWrapper(object):
         layouts_variants = zip(self._rec.layouts, self._rec.variants)
 
         if not (layout, variant) in layouts_variants:
-            raise XklWrapperError("'%s (%s)' not in the list of added layouts")
+            msg = "'%s (%s)' not in the list of added layouts" % (layout,
+                                                                  variant)
+            raise XklWrapperError(msg)
 
         idx = layouts_variants.index((layout, variant))
         new_layouts = self._rec.layouts[:idx] + self._rec.layouts[(idx + 1):]
-- 
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux