f2de9788989ec3c9c664c2c23b2d19ecc5567bf7,newspaper/mthreading.py,Worker,run,#Worker#,26
Before Change
try:
func, args, kargs = self.tasks.get()
except queue.Empty:
print("thread breaking b/c queue is empty")
break
try:
func(*args, **kargs)
except Exception as e:
After Change
try:
func, args, kargs = self.tasks.get()
except queue.Empty:
traceback.print_exc()
break
try:
func(*args, **kargs)
except Exception:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: codelucas/newspaper
Commit Name: f2de9788989ec3c9c664c2c23b2d19ecc5567bf7
Time: 2014-12-27
Author: lucasyangpersonal@gmail.com
File Name: newspaper/mthreading.py
Class Name: Worker
Method Name: run
Project Name: codelucas/newspaper
Commit Name: f2de9788989ec3c9c664c2c23b2d19ecc5567bf7
Time: 2014-12-27
Author: lucasyangpersonal@gmail.com
File Name: newspaper/images.py
Class Name:
Method Name: fetch_url
Project Name: streamlit/streamlit
Commit Name: 97e57f45738174a69ea14649a1355a2c1939478c
Time: 2020-05-11
Author: thiago@streamlit.io
File Name: lib/streamlit/server/Server.py
Class Name: Server
Method Name: _loop_coroutine