Skip to content

Commit

Permalink
Capturar ValueError en _communicate(), por si acaso.
Browse files Browse the repository at this point in the history
  • Loading branch information
dato committed May 26, 2016
1 parent 653a90f commit 73caf6b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions abb_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,12 @@ def _communicate(self, cmd, key=""):
if self.proc.returncode is not None:
self.fail("Murió el proceso abb_aux")
else:
ok, val = line.split(" ", 1)
return int(val)
try:
ok, val = line.split(" ", 1)
except ValueError:
self.fail("Murió el proceso abb_aux?")
else:
return int(val)

def setUp(self):
self.seq = []
Expand Down

0 comments on commit 73caf6b

Please sign in to comment.