hushline icon indicating copy to clipboard operation
hushline copied to clipboard

Avoid blanket catching of `Exception`

Open brassy-endomorph opened this issue 3 months ago • 0 comments

For example:

https://github.com/scidsg/hushline/blob/75ee6e0e58e71f014aedf4381dbd377d38691de7/app.py#L1192-L1205

This should catch an IntegrityError and check that the violated unique key matches what we expect. The current broad exception catch will make it more difficult to test and will hide programming errors and other bugs

brassy-endomorph avatar Mar 19 '24 08:03 brassy-endomorph