diff options
author | Ajay Garg <ajay@activitycentral.com> | 2012-12-02 20:25:02 (GMT) |
---|---|---|
committer | Ajay Garg <ajay@activitycentral.com> | 2012-12-02 20:25:02 (GMT) |
commit | 7b265f3e8401c450f72428b089cfd89275031e46 (patch) | |
tree | 0004d2fd4b15bc12f69feb67d230a0d6d287955c /bin | |
parent | 1aca0474d2e45e597f4bbdd1547d59f39589d97e (diff) |
sdxo#2716: If the list pulled from gconf is empty, don't try to deep-investigate it; else exceptions will cause the failure of "Sugar" to boot.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/sugar-session | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/sugar-session b/bin/sugar-session index 9827a16..638218f 100755 --- a/bin/sugar-session +++ b/bin/sugar-session @@ -318,9 +318,12 @@ def export_proxy_settings(): ignore_hosts = [] ignore_hosts_list = client.get('/system/http_proxy/ignore_hosts') - for entry in ignore_hosts_list.get_list(): - ignore_hosts.append(entry.get_string()) - os.environ['no_proxy'] = ','.join(ignore_hosts) + + # Process, only if the "ignore_hosts_list" is non-empty. + if ignore_hosts_list: + for entry in ignore_hosts_list.get_list(): + ignore_hosts.append(entry.get_string()) + os.environ['no_proxy'] = ','.join(ignore_hosts) def start_home(): from jarabe.desktop import homewindow |