aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/fts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/fts.py b/src/scripts/fts.py
index f5ac4d858de..c1dd882c8be 100755
--- a/src/scripts/fts.py
+++ b/src/scripts/fts.py
@@ -248,12 +248,12 @@ def main():
featurefile = featurefile.rstrip()
# Load configuration file
- with open(featurefile) as f:
+ with open(featurefile, encoding='utf-8') as f:
cfg = yaml.load(f, Loader=yaml.SafeLoader)
try:
validate(instance=cfg, schema=schema)
except exceptions.ValidationError:
- print('File does not validate: {featurefile}',
+ print(f'File does not validate: {featurefile}',
file=sys.stderr)
raise
features[featurefile] = cfg