Commit 094b766e authored by Jens Krüger's avatar Jens Krüger Committed by Jens Krueger
Browse files

CAEN/HV: Fix comparision between string and int

Change-Id: I39f7f8e43ac340c6a18cf6c47c288eb92db068cc

Tested-by: default avatarJenkins Automated Tests <>
Reviewed-by: default avatarJens Krueger <>
parent 72df5c87
......@@ -210,7 +210,7 @@ class PowerSupply(base.PowerSupply):
values = ''
if val:
value = val[0]
if value < 0:
if not isinstance(value, str) and value < 0:
value = abs(value)
values = VALUE + str(value)
reply = self._iodev.Communicate(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment