Fix trying to raise a bare str as an exception. This has been deprecated since Python 2.5

This commit is contained in:
johnthagen 2017-10-08 19:28:21 -04:00
parent 650b1b1f3a
commit dee517a286

View File

@ -360,7 +360,7 @@ def to_toml(value):
elif isinstance(value, str):
return "'" + value + "'"
else:
raise 'no toml'
raise RuntimeError('no toml')
def configure_section(lines, config):
for key in config: