mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-18 19:48:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user