[PATCH 3/5] Removed the exceptionsText constant

David Shea dshea at redhat.com
Fri Sep 13 19:23:43 UTC 2013


1) This constant is not used anymore
2) Building a sentence by concatenating translated fragments is a
   terrible idea
---
 pyanaconda/constants.py | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/pyanaconda/constants.py b/pyanaconda/constants.py
index 6ef6948..55fe440 100644
--- a/pyanaconda/constants.py
+++ b/pyanaconda/constants.py
@@ -43,18 +43,6 @@ shortProductName = productName.lower()
 if productName.count(" "):
     shortProductName = ''.join(s[0] for s in shortProductName.split())
 
-exceptionText = _("An unhandled exception has occurred.  This "
-                  "is most likely a bug.  Please save a copy of "
-                  "the detailed exception and file a bug report")
-if not bugzillaUrl:
-    # this string will be combined with "An unhandled exception"...
-    # the leading space is not a typo.
-    exceptionText += _(" with the provider of this software.")
-else:
-    # this string will be combined with "An unhandled exception"...
-    # the leading space is not a typo.
-    exceptionText += _(" against anaconda at %s") %(bugzillaUrl,)
-
 # DriverDisc Paths
 DD_ALL = "/tmp/DD"
 DD_FIRMWARE = "/tmp/DD/lib/firmware"
-- 
1.8.3.1



More information about the anaconda-patches mailing list