diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-11-17 11:39:26 +0100 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2021-11-17 13:00:33 +0100 |
commit | fd1f01d76b803f2b72165d4e79b516dc50bde52f (patch) | |
tree | 866a4eda87180ad4758ab86ca9b9a12707b69c69 /src/__init__.py | |
parent | ab7abf96a6832a227fe2218bb191cc2d1fc73030 (diff) |
#1065 Avoid SIGPIPE errors in windows mode
SIGPIPE is only available on Unix. Add try/except so that this
import does not crash ogclient when running in Windows mode.
Only assign SIG_DFL handler to SIGPIPE when mode is not windows.
Prefer signal.signal over signal alone to better distinguish module from
function.
Diffstat (limited to 'src/__init__.py')
0 files changed, 0 insertions, 0 deletions