issue #61: fix bare except (reported by LGTM)
This commit is contained in:
parent
abfb6e39a8
commit
fb750edfa7
|
@ -70,7 +70,7 @@ else:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
SC_OPEN_MAX = os.sysconf('SC_OPEN_MAX')
|
SC_OPEN_MAX = os.sysconf('SC_OPEN_MAX')
|
||||||
except:
|
except ValueError:
|
||||||
SC_OPEN_MAX = 1024
|
SC_OPEN_MAX = 1024
|
||||||
|
|
||||||
OPENPTY_MSG = (
|
OPENPTY_MSG = (
|
||||||
|
|
Loading…
Reference in New Issue