kiteconnect.exceptions.InputException

OJ4012
OJ4012 edited June 2023 in Python client
Hi guys, i'm unable to trap kiteconnect.exceptions.InputException error. I have trapped several different errors in the past but unable to trap this one and prog crashes. Can anyone please explain how to trap it? Thanks!
  • OJ4012
    Dear @sujith , could you help me in this please? Thanks.
  • rakeshr
    You need to import required exception from the exception class. Eg:
    from kiteconnect.exceptions import InputException

    try:
    # Your code that may raise InputException
    except InputException as e:
    # Handle the InputException here with proper log entry and re-try
  • OJ4012
    thank you @rakeshr . got it :)
This discussion has been closed.