title: How to catch python warnings with sentry?
body: <p>With <code>sentry_sdk</code>, the sentry documentation explain how to automatically catch exceptions or logging messages. However, how can I catch a python warning, like a <code>DeprecationWarning</code> that would be raised with</p>
  <pre><code>warnings.warn(DeprecationWarning, &quot;warning message&quot;)
  </code></pre>