ReactorNotRestartable

nkodela
When I run the program for the first time, the programs run fine. But when I interrupt it and run it for the second time I get the error as below

2021-03-07 13:57:44+0530 [-] Tokens length 1
2021-03-07 13:57:44+0530 [-] Starting factory
2021-03-07 13:57:44,030 - kiteconnect.ticker - DEBUG - Start WebSocket connection.
Traceback (most recent call last):

File "D:\KiteTicker Example.py", line 69, in
kws.connect()

File "C:\Users\anaconda3\lib\site-packages\kiteconnect\ticker.py", line 532, in connect
reactor.run(**opts)

File "C:\Users\anaconda3\lib\site-packages\twisted\internet\base.py", line 1422, in run
self.startRunning(installSignalHandlers=installSignalHandlers)

File "C:\Users\anaconda3\lib\site-packages\twisted\internet\base.py", line 1404, in startRunning
ReactorBase.startRunning(cast(ReactorBase, self))

File "C:\Users\anaconda3\lib\site-packages\twisted\internet\base.py", line 843, in startRunning
raise error.ReactorNotRestartable()

ReactorNotRestartable

Sign In or Register to comment.