Skip to content

Commit 0da314a

Browse files
committed
fix(client): Fix attribute errors on windows
1 parent c2cffb9 commit 0da314a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

client/deis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@
7676

7777
# Don't throw IOError when a pipe closes
7878
# https://github.com/deis/deis/issues/3764
79-
from signal import signal, SIGPIPE, SIG_DFL
80-
signal(SIGPIPE, SIG_DFL)
79+
import signal
80+
if hasattr(signal, 'SIGPIPE') and hasattr(signal, 'SIG_DFL'):
81+
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
8182

8283
__version__ = '1.7.0-dev'
8384

0 commit comments

Comments
 (0)