From fb750edfa7407a735edc2c6b66dca690e06f28a4 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 20 Jan 2019 19:35:49 +0000 Subject: [PATCH] issue #61: fix bare except (reported by LGTM) --- mitogen/parent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/parent.py b/mitogen/parent.py index 23aa0cc9..fad00b49 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -70,7 +70,7 @@ else: try: SC_OPEN_MAX = os.sysconf('SC_OPEN_MAX') -except: +except ValueError: SC_OPEN_MAX = 1024 OPENPTY_MSG = (