Permalink
Browse files

examples: python: do not catch BaseExceptions

  • Loading branch information...
1 parent 2c09c3b commit b861a9e0e4287e55b70e907f536ee464419d7427 @SaveTheRbtz committed Dec 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/python_example.py
View
2 examples/python_example.py
@@ -68,7 +68,7 @@ def send(self, data, sample_rate=1):
value = sampled_data[stat]
send_data = "%s:%s" % (stat, value)
udp_sock.sendto(send_data, self.addr)
- except:
+ except Exception:
import sys
from pprint import pprint
print >>sys.stderr, "Unexpected error:", pprint(sys.exc_info())

0 comments on commit b861a9e

Please sign in to comment.