Permalink
Browse files

examples: python: more useful errors

  • Loading branch information...
1 parent b861a9e commit 9b5fd681d4302b1631093c193510f36ea5adb0e0 @SaveTheRbtz committed Dec 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/python_example.py
@@ -70,8 +70,8 @@ def send(self, data, sample_rate=1):
udp_sock.sendto(send_data, self.addr)
except Exception:
import sys
- from pprint import pprint
- print >>sys.stderr, "Unexpected error:", pprint(sys.exc_info())
+ import traceback
+ print >>sys.stderr, "Unexpected error: ", traceback.format_exc()
pass # we don't care

0 comments on commit 9b5fd68

Please sign in to comment.