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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue