summaryrefslogtreecommitdiff
path: root/alot/settings
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-08-19 13:08:18 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-08-19 13:08:18 +0100
commitab720c6e595da04fa5619cabd8e86f7bc78a71a5 (patch)
tree1bd0961e31acb774a44dbfce13a6b80bbd916118 /alot/settings
parentec0d27f82880ba4076e6a50514a30ea8066b2889 (diff)
fix: don't die because of non-string bindings
cf issue #500
Diffstat (limited to 'alot/settings')
-rw-r--r--alot/settings/manager.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py
index c336071c..24d648e2 100644
--- a/alot/settings/manager.py
+++ b/alot/settings/manager.py
@@ -320,6 +320,10 @@ class SettingsManager(object):
value = bindings[mode][key]
if value:
cmdline = value
+ # Workaround for ConfigObj misbehaviour. cf issue #500
+ # this ensures that we get at least strings only as commandlines
+ if isinstance(cmdline, list):
+ cmdline = ','.join(cmdline)
return cmdline
def get_accounts(self):