tornado-cat-example icon indicating copy to clipboard operation
tornado-cat-example copied to clipboard

AttributeError: 'dict' object has no attribute 'session_key'

Open hscspring opened this issue 7 years ago • 2 comments

hello, i met an issue like this:

Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/tornado/web.py", line 1543, in _execute
    result = yield result
  File "/Library/Python/2.7/site-packages/tornado/gen.py", line 1099, in run
    value = future.result()
  File "/Library/Python/2.7/site-packages/tornado/concurrent.py", line 260, in result
    raise_exc_info(self._exc_info)
  File "/Library/Python/2.7/site-packages/tornado/gen.py", line 1113, in run
    yielded = self.gen.send(value)
  File "main.py", line 82, in get
    flow = Flow(flow=q.flow, name=session.session_key)
AttributeError: 'dict' object has no attribute 'session_key'

hscspring avatar Apr 09 '18 10:04 hscspring

name=session.session_key,这句话name后面的加上单引号

whisperem avatar Oct 23 '19 00:10 whisperem

name=session.session_key update to name='session.session_key'

whisperem avatar Oct 23 '19 00:10 whisperem