Fix trying to raise a bare str as an exception. This has been deprecated since Python 2.5
This commit is contained in:
parent
650b1b1f3a
commit
dee517a286
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user