1. Jannis Leidel
  2. transifex-client

Commits

coderanger  committed 52f6f31

Windows compat fix, SIGPIPE doesn't exist.

  • Participants
  • Parent commits 854171f
  • Branches default

Comments (0)

Files changed (1)

File tx

View file
 
     signal.signal(signal.SIGINT, exithandler)
     signal.signal(signal.SIGTERM, exithandler)
-    signal.signal(signal.SIGPIPE, signal.SIG_DFL)
+    if hasattr(signal, 'SIGPIPE'):
+        signal.signal(signal.SIGPIPE, signal.SIG_DFL)
 
 except KeyboardInterrupt:
     sys.exit(1)