`Exception in thread Thread-12:
Traceback (most recent call last):
File "/opt/function/runtime/python3.6/rtsp/python/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/opt/function/runtime/python3.6/rtsp/python/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/opt/function/code/activity/unicom/unicomSignerTask.py", line 69, in run
taskList = self.findTask()
File "/opt/function/code/activity/unicom/unicomSignerTask.py", line 41, in findTask
taskList = data['data']['showTask']
TypeError: 'NoneType' object is not subscriptable
Exception in thread Thread-22:
Traceback (most recent call last):
File "/opt/function/runtime/python3.6/rtsp/python/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/opt/function/runtime/python3.6/rtsp/python/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/opt/function/code/activity/unicom/unicomTurnTable.py", line 118, in run
playCounts, useCount = self.list()
File "/opt/function/code/activity/unicom/unicomTurnTable.py", line 38, in list
return data['data']['playCounts'], data['data']['useCount']
TypeError: 'NoneType' object is not subscriptable
`
查了一下,是把return None的方法赋给了变量
希望可以定位一下
`Exception in thread Thread-12: Traceback (most recent call last): File "/opt/function/runtime/python3.6/rtsp/python/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/opt/function/runtime/python3.6/rtsp/python/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "/opt/function/code/activity/unicom/unicomSignerTask.py", line 69, in run taskList = self.findTask() File "/opt/function/code/activity/unicom/unicomSignerTask.py", line 41, in findTask taskList = data['data']['showTask'] TypeError: 'NoneType' object is not subscriptable
Exception in thread Thread-22: Traceback (most recent call last): File "/opt/function/runtime/python3.6/rtsp/python/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/opt/function/runtime/python3.6/rtsp/python/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "/opt/function/code/activity/unicom/unicomTurnTable.py", line 118, in run playCounts, useCount = self.list() File "/opt/function/code/activity/unicom/unicomTurnTable.py", line 38, in list return data['data']['playCounts'], data['data']['useCount'] TypeError: 'NoneType' object is not subscriptable ` 查了一下,是把return None的方法赋给了变量 希望可以定位一下