commit 6348043b31ea2965c8c199d4d186e3ebc58594e0
parent 23f1f186e569f596f8f00471284f7db76efa1cdb
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Mon, 7 Mar 2016 14:20:15 -0800
only return password
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.mutt/offlineimap.py b/.mutt/offlineimap.py
@@ -28,7 +28,7 @@ def get_keychain_pass(account=None, server=None):
attrs = {'server': server, 'protocol': 'http'}
items = gkey.find_items_sync(gkey.ITEM_NETWORK_PASSWORD, attrs)
- return (items[0].attributes['user'], items[0].secret)
+ return (items[0].attributes['user'], items[0].secret)[1]
else:
raise Exception('Platform "' + sys.platform + '" not supported.')