Hi i'm trying to log indentation error in function test().but when i run the code it's executing without any error. can anyone please tell me the reason here.
def test():
try: //1
print "ABC" //2//indentaton error//
logger.info("printed")//3
#except Exception as e://
#logger.error("Exception occured while order dictionary",exc_info=True)
except IndentationError as e://4
logger.error("indentation err",exc_info=True)//5