Skip to content

Commit

Permalink
Fix trying to raise a bare str as an exception. This has been depreca…
Browse files Browse the repository at this point in the history
…ted since Python 2.5
  • Loading branch information
johnthagen committed Oct 8, 2017
1 parent 650b1b1 commit dee517a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/configure.py
Expand Up @@ -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:
Expand Down

0 comments on commit dee517a

Please sign in to comment.