Bug 226259

Summary: Traceback generated when LANG isn't set
Product: [Fedora] Fedora Reporter: David Rees <drees76>
Component: smoltAssignee: Mike McGrath <imlinux>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: bloch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-05 03:03:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Rees 2007-01-31 20:35:43 UTC
Description of problem:
If you run smoltPrint or smoltSendProfile without the LANG environment variable
set to something, you get a Traceback.

Version-Release number of selected component (if applicable):
smolt-0.6.1-3.fc6

How reproducible:
Everytime

Steps to Reproduce:
1. unset LANG
2. run smoltPrint or smoltSendProfile
  
Actual results:
> smoltPrint
Traceback (most recent call last):
  File "/usr/bin/smoltPrint", line 8, in ?
    profile = Profile.Profile()
  File "/usr/share/smolt/client/Profile.py", line 37, in __init__
    self.language = os.environ['LANG']
  File "/usr/lib/python2.4/UserDict.py", line 17, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: 'LANG'
> smoltSendProfile
Traceback (most recent call last):
  File "/usr/bin/smoltSendProfile", line 11, in ?
    profile = Profile.Profile()
  File "/usr/share/smolt/client/Profile.py", line 37, in __init__
    self.language = os.environ['LANG']
  File "/usr/lib/python2.4/UserDict.py", line 17, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: 'LANG'

Expected results:
Expect to see smolt either print or send data as expected.

Comment 1 Adam Huffman 2007-02-02 00:27:21 UTC
Yes, I've seen this too.

Comment 2 Mike McGrath 2007-02-05 03:03:25 UTC
Fixed, should be released soon.