Bug 226259 - Traceback generated when LANG isn't set
Traceback generated when LANG isn't set
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: smolt (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Mike McGrath
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-31 15:35 EST by David Rees
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-02-04 22:03:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description David Rees 2007-01-31 15:35:43 EST
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-01 19:27:21 EST
Yes, I've seen this too.
Comment 2 Mike McGrath 2007-02-04 22:03:25 EST
Fixed, should be released soon.

Note You need to log in before you can comment on or make changes to this bug.