Possible bug with "NoneType" object

rs7683
Dear Team,

I stumbled upon 1 error/exception (builtins.AttributeError: 'NoneType' object has no attribute 'append') which is apparently not from the code, I have written.

For your reference, I am providing complete stack trace. Please let me know if it a known bug and could I do anything to avoid that?


Unhandled Error
Traceback (most recent call last):
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\kiteconnect\ticker.py", line 532, in connect
reactor.run(**opts)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\internet\base.py", line 1283, in run
self.mainLoop()
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\internet\base.py", line 1295, in mainLoop
self.doIteration(t)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\internet\selectreactor.py", line 143, in doSelect
_logrun(selectable, _drdw, selectable, method)
--- ---
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\python\log.py", line 103, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\python\log.py", line 86, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\python\context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\python\context.py", line 85, in callWithContext
return func(*args,**kw)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\internet\selectreactor.py", line 154, in _doReadOrWrite
self._disconnectSelectable(selectable, why, method=="doRead")
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\internet\posixbase.py", line 258, in _disconnectSelectable
selectable.connectionLost(failure.Failure(why))
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\internet\tcp.py", line 519, in connectionLost
self._commonConnection.connectionLost(self, reason)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\internet\tcp.py", line 327, in connectionLost
protocol.connectionLost(reason)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\protocols\tls.py", line 398, in connectionLost
self._flushReceiveBIO()
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\protocols\tls.py", line 295, in _flushReceiveBIO
ProtocolWrapper.dataReceived(self, bytes)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\twisted\protocols\policies.py", line 120, in dataReceived
self.wrappedProtocol.dataReceived(data)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\autobahn\twisted\websocket.py", line 290, in dataReceived
self._dataReceived(data)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\autobahn\websocket\protocol.py", line 1206, in _dataReceived
self.consumeData()
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\autobahn\websocket\protocol.py", line 1218, in consumeData
while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED:
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\autobahn\websocket\protocol.py", line 1570, in processData
fr = self.onFrameData(payload)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\autobahn\websocket\protocol.py", line 1665, in onFrameData
self._onMessageFrameData(payload)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\autobahn\twisted\websocket.py", line 309, in _onMessageFrameData
self.onMessageFrameData(payload)
File "C:\Users\TanuRaman\PycharmProjects\AlgoTrading\venv\lib\site-packages\autobahn\websocket\protocol.py", line 601, in onMessageFrameData
self.frame_data.append(payload)
builtins.AttributeError: 'NoneType' object has no attribute 'append'

Sign In or Register to comment.