How can execute Python from the command line and ignore certain warings (such as
) while turning the rest into exceptions?
option be used multiple times to do this?
The specific problem I am facing is that I am running
uses an outdated
is thrown when I run with
before I gain access in my code to catch it. I'd like to minimize the effect to my testing by at least ignoring only this warning, and turn the others (
, etc) into exceptions so I can detect and handle those in my own code.