projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds Arper, cleans up other stuff.
[python_utils.git]
/
decorator_utils.py
diff --git
a/decorator_utils.py
b/decorator_utils.py
index 0d5b3e3213c393e8843c5f1abb677d3e3e36cdb4..e19759f92a5e5b06ea425c2a0755d96ea783a7af 100644
(file)
--- a/
decorator_utils.py
+++ b/
decorator_utils.py
@@
-340,7
+340,7
@@
def _target(queue, function, *args, **kwargs):
"""
try:
queue.put((True, function(*args, **kwargs)))
"""
try:
queue.put((True, function(*args, **kwargs)))
- except:
+ except
Exception
:
queue.put((False, sys.exc_info()[1]))
queue.put((False, sys.exc_info()[1]))
@@
-435,7
+435,6
@@
def timeout(
use_signals = thread_utils.is_current_thread_main_thread()
def decorate(function):
use_signals = thread_utils.is_current_thread_main_thread()
def decorate(function):
-
if use_signals:
def handler(signum, frame):
if use_signals:
def handler(signum, frame):