Skip to content

Commit a39a66e

Browse files
committed
capture except properly
Signed-off-by: Mario Dominguez <[email protected]>
1 parent e6a0d5a commit a39a66e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/examples/test_hello_world.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ def test_hello_world():
3434

3535
if 'RECEIVED' in line:
3636
received += 1
37-
37+
3838
if sent != 0 and received != 0 and sent * 2 == received:
3939
ret = True
4040
else:
4141
print('ERROR: sent: ' + str(sent) + ', but received: ' + str(received) +
4242
' (expected: ' + str(sent * 2) + ')')
4343
raise subprocess.CalledProcessError(1, '')
4444

45-
except subprocess.CalledProcessError:
45+
except subprocess.CalledProcessError as e:
4646
print ('ERROR %s', e.output)
4747
except subprocess.TimeoutExpired:
4848
print('TIMEOUT')

0 commit comments

Comments
 (0)