Fixed crash when user language is undefined

Monotone-Parent: 19556539dea890ea9ed78ae2d8b4ebfdfa9a4756
Monotone-Revision: e06e95ef20737d961a60d9d5b3897e4f7ced26b7

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-10-02T20:59:52
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-10-02 20:59:52 +00:00
parent 59da0220d3
commit 1ffcdd97bc

View File

@@ -65,7 +65,12 @@ class preferences:
get.cookie = self.cookie
self.client.execute (get)
content = eval (get.response['body'])
return content[preference]
result = None
try:
result = content[preference]
except:
pass
return result
# Simple main to test this class