summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/korad-logger4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/korad-logger b/bin/korad-logger
index fea5a24..98cd922 100755
--- a/bin/korad-logger
+++ b/bin/korad-logger
@@ -220,13 +220,13 @@ class KA320:
def get_voltage(self, plot=None):
try:
return float(self.rw(f"VOUT{self.channel:d}?".encode(), 5, True, plot=plot))
- except TypeError:
+ except (TypeError, ValueError):
return None
def get_current(self, plot=None):
try:
return float(self.rw(f"IOUT{self.channel:d}?".encode(), 5, True, plot=plot))
- except TypeError:
+ except (TypeError, ValueError):
return None
def set_output(self, enable):