Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions geventreactor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ def callInThread(self,func,*args,**kwargs):
def callInThreadWithCallback(self,onResult,func,*args,**kwargs):
"""Call a callable object in a separate greenlet and call onResult with the return value."""
if self.open:
def task():
def task(*a, **kw):
try:
res = func(*args,**kwargs)
res = func(*a, **kw)
except:
onResult(False,failure.Failure())
else:
Expand Down