Fix exception message formatting

This commit is contained in:
Florian Bruhin 2017-12-15 14:42:37 +01:00
parent 7cebd95936
commit 79717528ec

View File

@ -341,7 +341,7 @@ class WebHistory(sql.SqlTable):
f.write('\n'.join(lines))
message.info("Dumped history to {}".format(dest))
except OSError as e:
raise cmdexc.CommandError('Could not write history: {}', e)
raise cmdexc.CommandError('Could not write history: {}'.format(e))
def init(parent=None):