[ create a new paste ] login | about

Link: http://codepad.org/xF1kdM8c    [ raw code | fork ]

Python, pasted on Dec 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ python test_timeout.py 
<registered[*] (<Debugger/* 9022:MainThread (queued=0) [S]>, <App/* 9022:MainThread (queued=2) [R]> )>
<started[*] (<App/* 9022:MainThread (queued=1) [R]> )>
<foo[*] ( )>
<foo_done[*] (None )>
<error[*] (<type 'exceptions.KeyError'>, KeyError('generate_event',), ['  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 669, in processTask\n    value = next(task)\n', '  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 456, in callEvent\n    for r in self.waitEvent(event.name, *event.channels, **kwargs):\n', '  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 438, in waitEvent\n    self.removeHandler(_on_tick_handler, "generate_event")\n', '  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 299, in removeHandler\n    self._handlers[name].remove(method)\n'] handler=<function handler at 0x7fa8e12be848>, fevent=<started[*] (<App/* 9022:MainThread (queued=1) [R]> )>)>
<error[*] (<type 'exceptions.AttributeError'>, AttributeError("'function' object has no attribute 'channel'",), ['  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 539, in _dispatcher\n    value = handler(*eargs, **ekwargs)\n', '  File "/home/prologic/work/circuits-dev/circuits/core/debugger.py", line 68, in _on_error\n    handler = reprhandler(handler)\n', '  File "/home/prologic/work/circuits-dev/circuits/core/handlers.py", line 99, in reprhandler\n    channel = handler.channel if handler.channel is not None else "*"\n'] handler=<bound method Debugger._on_error of <Debugger/* 9022:MainThread (queued=0) [S]>>, fevent=<error[*] (<type 'exceptions.KeyError'>, KeyError('generate_event',), ['  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 669, in processTask\n    value = next(task)\n', '  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 456, in callEvent\n    for r in self.waitEvent(event.name, *event.channels, **kwargs):\n', '  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 438, in waitEvent\n    self.removeHandler(_on_tick_handler, "generate_event")\n', '  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 299, in removeHandler\n    self._handlers[name].remove(method)\n'] handler=<function handler at 0x7fa8e12be848>, fevent=<started[*] (<App/* 9022:MainThread (queued=1) [R]> )>)>)>
ERROR <handler[*.error] (Debugger._on_error)> (<error[*] (<type 'exceptions.KeyError'>, KeyError('generate_event',), ['  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 669, in processTask\n    value = next(task)\n', '  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 456, in callEvent\n    for r in self.waitEvent(event.name, *event.channels, **kwargs):\n', '  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 438, in waitEvent\n    self.removeHandler(_on_tick_handler, "generate_event")\n', '  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 299, in removeHandler\n    self._handlers[name].remove(method)\n'] handler=<function handler at 0x7fa8e12be848>, fevent=<started[*] (<App/* 9022:MainThread (queued=1) [R]> )>)>) {<type 'exceptions.AttributeError'>}: 'function' object has no attribute 'channel'
  File "/home/prologic/work/circuits-dev/circuits/core/manager.py", line 539, in _dispatcher
    value = handler(*eargs, **ekwargs)
  File "/home/prologic/work/circuits-dev/circuits/core/debugger.py", line 68, in _on_error
    handler = reprhandler(handler)
  File "/home/prologic/work/circuits-dev/circuits/core/handlers.py", line 99, in reprhandler
    channel = handler.channel if handler.channel is not None else "*"

None


Create a new paste based on this one


Comments: