Skip to content

Commit

Permalink
Added exception when error is raised
Browse files Browse the repository at this point in the history
  • Loading branch information
thiezn committed Mar 12, 2018
1 parent 6135b36 commit 7ae5a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iperf3/iperf3.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def __init__(self, result):
self.json = json.loads(result)

if 'error' in self.json:
self.error = self.json['error']
raise IOError(self.json['error'])
else:
self.error = None

Expand Down

0 comments on commit 7ae5a6a

Please sign in to comment.