When I try to handle the IndentatioError in except part in following code..
try:
   def Test():
   print("Test Function")
except IndentationError:
   print("Exception raised")
I got this error in output:
File "C:/Users/PycharmProjects/py1/Exception.py", line 3
    print("Test Function")
        ^
IndentationError: expected an indented block
Process finished with exit code 1
I accept the the except part in output.
I want to know how can I handle such type of exception.
 
     
     
     
     
    