Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

How can I ensure that the intended block should be within the try-except?

Asked by Bhushan Bhad Jun 5, 2024 636 views 1 answer
Share

About this question

 I am a software engineer and I am currently engaged in a particular task which is related to working on a large-scale web-based application. My team has been executing a feature that includes a new algorithm to enhance the search functionality on my platform. During a code review, I noticed that a colleague had written a section of code by using a try-except block to handle potential errors. However, it appears that the intended block of code inside the try section might not cover all the possible scenarios and it can lead to some edge cases being missed. How can I approach this particular situation? 

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.