Skip to content

Commit

Permalink
BF: Format string for error message when param needs updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd authored and peircej committed Dec 4, 2020
1 parent 40bbfe1 commit 5c8271f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psychopy/app/builder/validators.py
Expand Up @@ -218,7 +218,7 @@ def _highlightParamVal(parent, error=False):
eval(code)
except NameError as e:
_highlightParamVal(parent, True)
msg = _translate("Looks like your variable '{code}' in '{displayName}' should be set to update.")
msg = _translate(f"Looks like your variable '{code}' in '{self.displayName}' should be set to update.")
msg = msg.format(code=code, displayName=self.displayName)
except SyntaxError as e:
msg = ''
Expand Down

0 comments on commit 5c8271f

Please sign in to comment.