mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
fix exception usage
This commit is contained in:
parent
573bd19e1f
commit
a7090dfc2c
2 changed files with 2 additions and 3 deletions
|
@ -133,7 +133,7 @@ if os_name in ("nt", "os2", "posix"):
|
|||
thread.stack_size(4096)
|
||||
except ValueError:
|
||||
print 'caught expected ValueError setting stack_size(4096)'
|
||||
except thread.ThreadError:
|
||||
except thread.error:
|
||||
tss_supported = 0
|
||||
print 'platform does not support changing thread stack size'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue