Skip to content

Commit dee517a

Browse files
committed
Fix trying to raise a bare str as an exception. This has been deprecated since Python 2.5
1 parent 650b1b1 commit dee517a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/configure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def to_toml(value):
360360
elif isinstance(value, str):
361361
return "'" + value + "'"
362362
else:
363-
raise 'no toml'
363+
raise RuntimeError('no toml')
364364

365365
def configure_section(lines, config):
366366
for key in config:

0 commit comments

Comments
 (0)