Skip to content

Commit

Permalink
Remove f-string from translation call
Browse files Browse the repository at this point in the history
  • Loading branch information
jni committed Jul 6, 2024
1 parent e8c3f6f commit f5fe4f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion napari/components/viewer_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,9 @@ def reset_view(self, *, margin: float = 0.05) -> None:
else:
raise ValueError(
trans._(
f'margin must be between 0 and 1; got {margin} instead.',
'margin must be between 0 and 1; got {margin} instead.',
deferred=True,
margin=margin,
)
)
if np.max(size) == 0:
Expand Down

0 comments on commit f5fe4f4

Please sign in to comment.