We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94b636a commit 1567c7dCopy full SHA for 1567c7d
1 file changed
labgrid/driver/power/simplerest.py
@@ -17,7 +17,8 @@ def power_set(host, port, index, value):
17
18
index = int(index)
19
value = 1 if value else 0
20
- requests.get(host.format(value=value, index=index))
+ r = requests.get(host.format(value=value, index=index))
21
+ r.raise_for_status()
22
23
def power_get(host, port, index):
24
assert port is None
0 commit comments