Skip to content

Commit

Permalink
Make config parser for tolerant of invalid data by @BjarniRunar
Browse files Browse the repository at this point in the history
  • Loading branch information
bnvk committed Jan 3, 2014
1 parent 69d9974 commit 0a89c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailpile/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ def item_sorter(i):
for var, val in items:
try:
cfg[var] = val
except (ValueError, KeyError):
except (ValueError, KeyError, IndexError):
if session:
msg = _(u'Invalid (%s): section %s, variable %s'
) % (source, section, var)
Expand Down

0 comments on commit 0a89c37

Please sign in to comment.