Browse Source

Stop ignoring errors when disabling SIGPIPE

tags/nilmdb-2.0.0
Jim Paris 3 years ago
parent
commit
9f2651c35e
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      nilmdb/cmdline/cmdline.py

+ 1
- 4
nilmdb/cmdline/cmdline.py View File

@@ -136,10 +136,7 @@ class Cmdline(object):
def run(self):
# Set SIGPIPE to its default handler -- we don't need Python
# to catch it for us.
try:
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
except ValueError: # pragma: no cover
pass
signal.signal(signal.SIGPIPE, signal.SIG_DFL)

# Clear cached timezone, so that we can pick up timezone changes
# while running this from the test suite.


Loading…
Cancel
Save