Skip to content

Commit

Permalink
Strip whitespace from $$(...) values in Qleverfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannah Bast committed Mar 10, 2024
1 parent 9b39861 commit 54ddf72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qlever/qleverfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def read(qleverfile_path):
try:
value = subprocess.check_output(
match.group(1), shell=True, text=True,
stderr=subprocess.STDOUT)
stderr=subprocess.STDOUT).strip()
except Exception as e:
log.info("")
log.error(f"Error evaluating {value} for option "
Expand All @@ -232,7 +232,6 @@ def read(qleverfile_path):
log.info(e.output if hasattr(e, "output") else e)
exit(1)
config[section][option] = value
log.info(f"Set {section}.{option} to {value}")

# Make sure that all the sections are there.
for section in ["data", "index", "server", "runtime", "ui"]:
Expand Down

0 comments on commit 54ddf72

Please sign in to comment.