Hi,
How can I catch a warning message, for example:
/usr/local/lib/python3.8/dist-packages/obspy/core/inventory/response.py:1895: UserWarning: More than one PolesZerosResponseStage encountered. Returning first one found.
warnings.warn(msg)
I would actually like to overload the message with trace info such as station name.
Thank you