Skip to content

Commit

Permalink
logger: do not crash when parsing script with invalid variable name (c…
Browse files Browse the repository at this point in the history
…loses #816)
  • Loading branch information
smathot committed Jan 9, 2025
1 parent f990f5a commit 7dff19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libopensesame/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def from_string(self, string):
for var in arglist:
if not self.experiment.syntax.valid_var_name(
safe_decode(var)):
raise InvalidOpenSesameScript(
'{var} is not a valid variable name')
oslogger.error(
f'{var} is not a valid variable name')
self.logvars += arglist
else:
self.exclude_patterns += arglist
Expand Down

0 comments on commit 7dff19e

Please sign in to comment.