We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbc770d commit a7da845Copy full SHA for a7da845
builder/toml_reader.py
@@ -1,19 +1,12 @@
1
import os
2
3
try:
4
- import tomllib as toml
+ import toml
5
except ImportError:
6
- try:
7
- import toml
8
- except ImportError:
9
- raise RuntimeError(
10
- 'A "toml" library is needed to read a .toml file\n'
11
- 'One is included with Python 3.11+ or you can install \n'
12
- 'into your current version of Python using the following command:\n'
13
- '\n'
14
- 'pip3 install toml'
15
- )
16
-
+ raise RuntimeError(
+ 'The toml library is needed to use this feature.\n'
+ 'Please run "pip3 install toml" and then restart your build'
+ )
17
18
used_imports = []
19
global_variable_names = []
0 commit comments