diff --git a/saqc/funcs/flagtools.py b/saqc/funcs/flagtools.py
index 4f6e69c5144f0272f5c8eb73cd647731b06200ed..3167097c3addf74b1dd8492c5458912484a19c8c 100644
--- a/saqc/funcs/flagtools.py
+++ b/saqc/funcs/flagtools.py
@@ -377,10 +377,12 @@ class FlagtoolsMixin:
                 self._data[target] = pd.Series(np.nan, index=self._data[field].index)
                 self._flags._data[target] = History(self._data[target].index)
             if not self._data[field].index.equals(self._data[target].index):
-                raise ValueError(f'All Field and Target indices must match!\n'
-                                 f'Indices of {field} and {target} seem to be not congruent within the context of the given\n'
-                                 f'- fields: {fields}\n '
-                                 f'- and targets: {targets}')
+                raise ValueError(
+                    f"All Field and Target indices must match!\n"
+                    f"Indices of {field} and {target} seem to be not congruent within the context of the given\n"
+                    f"- fields: {fields}\n "
+                    f"- and targets: {targets}"
+                )
             history = self._flags.history[field].copy(deep=True)
 
             if overwrite is False: