diff --git a/napari/components/viewer_model.py b/napari/components/viewer_model.py index 9888c3097c5..22e77f5de3f 100644 --- a/napari/components/viewer_model.py +++ b/napari/components/viewer_model.py @@ -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: