Skip to main content
Question

Exception handling for username and password using SDK

  • January 31, 2023
  • 0 replies
  • 18 views

mayank_phopse
Fan

I have tried exceptional handling for invalid username or password using SDK.

try:    JDBC_consumer.username = "****"    JDBC_consumer.password = "********"except:    print("Invalid username & password")

 

Following code is not working. Can anyone suggest a different approach?