diff options
Diffstat (limited to 'python/examples/api/spout')
| -rwxr-xr-x | python/examples/api/spout | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/python/examples/api/spout b/python/examples/api/spout index 97cb540c21..5479b66211 100755 --- a/python/examples/api/spout +++ b/python/examples/api/spout @@ -113,13 +113,11 @@ try: name, val = nameval(p) msg.properties[name] = val - try: - snd.send(msg) - count += 1 - print msg - except SendError, e: - print e - break + snd.send(msg) + count += 1 + print msg +except SendError, e: + print e except KeyboardInterrupt: pass |
