Bypass Base or Generic exception
No, there is no way to bypass a try ... except. Every exception that can be thrown can also be caught with an except. That's the whole point of exception handling.
Trying to bypass an exception handler is not the correct solution. If your user catches your exception, there's nothing you can do about it. Look at it this way: The user caught an exception that he wasn't supposed to catch. This is a bug in the user's code. The correct way to deal with bugs is to fix them, not try to bypass them. It's not your responsibility to do anything about this problem - it's the user's responsibility to fix that bug.
In my framework, I am exposing a method to user which raises a custom exception and handling it in framework if raised.
But user has used generic catch block (Exception or except) while using my method, thus it is not handled as expected.
Is there any way I can solve this issue either by ,
i) Making my custom exception bypass generic except block (or get caught only by my custom except block).
ii) get the flow back to test_driver directly when condition is encountered.
Note: I can not restrict user to using generic catch block.