You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "main.py", line 8, in <module>
func()
File "main.py", line 5, in func
import time; time.sleep(2)
File "py_envs/py2/lib/python2.7/site-packages/stopit/utils.py", line 87, in __exit__
self.suppress_interrupt()
File "py_envs/py2/lib/python2.7/site-packages/stopit/threadstop.py", line 65, in suppress_interrupt
self.timer.cancel()
File "homebrew/Cellar/python@2/2.7.15_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 1066, in cancel
def cancel(self):
stopit.utils.TimeoutException
When I run with python 3 I don't get any output as expected, because I've swallowed the exception. Any ideas?
The text was updated successfully, but these errors were encountered:
ferdinandvanwyk
changed the title
Python 2.7.15 respect swallow_exc
Python 2.7.15 doesn't respect swallow_exc
Feb 19, 2019
Running the following simple code with python 2.7.15:
I get the following exception being thrown:
When I run with python 3 I don't get any output as expected, because I've swallowed the exception. Any ideas?
The text was updated successfully, but these errors were encountered: