[PATCH master] Fix traceback when using duplicate name for added/edited repo (#623080)

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

 



The traceback is in non-fatal error message raised when the duplicate
name is used.

---
 pyanaconda/iw/task_gui.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/iw/task_gui.py b/pyanaconda/iw/task_gui.py
index baf2729..cba030d 100644
--- a/pyanaconda/iw/task_gui.py
+++ b/pyanaconda/iw/task_gui.py
@@ -152,7 +152,7 @@ class RepoEditor:
             self.intf.messageWindow(_("Error"),
                   _("The repository %s has already been added.  Please "
                     "choose a different repository name and "
-                    "URL.") % self.repo.name, type="ok", custom_icon="error")
+                    "URL.") % repo.name, type="ok", custom_icon="error")
             return False
 
         repo.enable()
-- 
1.7.2

_______________________________________________
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