How to Run a Python Program with Warnings Without Ignoring Them? or Best Way to Handle Warnings When

20 Replies, 1150 Views

Honestly, some warnings are just noise.

If you python run program with warnings and only care about specific ones, use:
```python
warnings.filterwarnings("ignore", category=DeprecationWarning)
warnings.filterwarnings("always", category=UserWarning)
```
Mix and match to filter the useless stuff.

Messages In This Thread



Users browsing this thread: 1 Guest(s)