Unhandled error

jenish_shakti
Hello,

I am receiving "Unhandled error" in websocket and then suddenly websocket getting stopped.

Refer link: codeshare.io/8pZJ3B
Tagged:
  • rakeshr
    builtins.AttributeError: 'NoneType' object has no attribute 'Worksheet'
    It's related to the worksheet not with the WebSocket stream. You need to check on the worksheet assignment.
  • jenish_shakti
    Hello @rakeshr ,

    Appreciated your quick reply.
    I am wondering that websocket works smooth since many days, even today. But in between after 30-50 minutes stopping with the error. There is no code change. Just picking data from websocket and writing it in excel spreadsheet. I am not able to understand what this exception is showing me.




    Although, I am stopping script manually and re-running it again and it starts normally as what it is programmed.
  • rakeshr
    Just picking data from websocket and writing it in excel spreadsheet
    You should avoid any computation inside on_tick thread. Go through WebSocket FAQs here.
Sign In or Register to comment.