I am using: ipdb (ipdb==0.13.9).
For the with launch_ipdb_on_exception(): line in code-block from answer for Launch an IPython shell on exception
from ipdb import launch_ipdb_on_exception
def main():
with launch_ipdb_on_exception():
# The rest of the code goes here.
[...]
I am getting following warning message:
[not-context-manager] Context manager 'generator' doesn't implement __enter__ and __exit__. [E1129]
What is the main cause of this error? How could I prevent this warning message?