drivendataorg / zamba

A Python package for identifying 42 kinds of animals, training custom models, and estimating distance from camera trap videos
https://zamba.drivendata.org/docs/stable/
MIT License
118 stars 27 forks source link

Don't show local variables in exceptions and errors #237

Closed ejm714 closed 2 years ago

ejm714 commented 2 years ago

Fixes #233

Relevant part of typer docs explaining exception and error handling: https://typer.tiangolo.com/tutorial/exceptions/

We can turn off the rich behavior entirely, but I propose just turning off the "show local variables" behavior. This way, we still get a more nicely colored stack trace, but with the same amount of info as before.

Below is a screenshot from the example case, showing the new behavior:

image
netlify[bot] commented 2 years ago

Deploy Preview for silly-keller-664934 ready!

Name Link
Latest commit 435c39130aa7756e3237637bef03982e0d06a84f
Latest deploy log https://app.netlify.com/sites/silly-keller-664934/deploys/63334c8dac8e2d0008a5abcc
Deploy Preview https://deploy-preview-237--silly-keller-664934.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

github-actions[bot] commented 2 years ago

🚀 Deployed on https://deploy-preview-237--silly-keller-664934.netlify.app