We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5bf567 + f5f366e commit ab2187cCopy full SHA for ab2187c
1 file changed
source/pyControl/hardware.py
@@ -410,7 +410,7 @@ def check(self, sample):
410
411
def set_threshold(self, threshold, run_start=False):
412
if not isinstance(threshold, int):
413
- raise ValueError(f"Threshold must be an integer, got {type(threshold).__name__}.")
+ raise ValueError("Threshold must be an integer, got {}.".format(type(threshold).__name__))
414
self.threshold = threshold
415
self.reset_above_threshold = True
416
0 commit comments