aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorshnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-07-18 11:03:10 +0000
committershnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-07-18 11:03:10 +0000
commit43619337f903c598078ef0640e7d5d75a49933ce (patch)
treec7631383d7fed0c882235fca2b3a3ef291e666ee /src
parent1528a2010cb81a11f255cdb7865855ae4741e8e8 (diff)
downloadsos-43619337f903c598078ef0640e7d5d75a49933ce.tar.gz
* catch KeyboardInterrupt when entering sosreport name
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@219 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src')
-rwxr-xr-xsrc/lib/sos/policyredhat.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/sos/policyredhat.py b/src/lib/sos/policyredhat.py
index b3c887f3..d4a4074d 100755
--- a/src/lib/sos/policyredhat.py
+++ b/src/lib/sos/policyredhat.py
@@ -99,13 +99,15 @@ class SosPolicy:
def packageResults(self):
localname = commands.getoutput("/bin/uname -n").split(".")[0]
- name = raw_input("Please enter your first initial and last name [%s]: " % localname)
- if len(name) == 0: name = localname
try:
+ name = raw_input("Please enter your first initial and last name [%s]: " % localname)
+ if len(name) == 0: name = localname
+
ticketNumber = raw_input("Please enter the case number that you are generating this report for: ")
except KeyboardInterrupt:
- print "<interrupted>"
+ print _("<interrupted>")
+ print _("Temporary files have been stored in ") % self.cInfo['dstroot']
return
if len(ticketNumber):