View Issue Details

IDProjectCategoryView StatusLast Update
0004414Talerobsolete componentpublic2016-04-24 23:37
ReporterFlorian Dold Assigned ToMarcello Stanisci  
PrioritynormalSeveritytweakReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.0 
Target Version0.0Fixed in Version0.0 
Summary0004414: change error handling technique
DescriptionThis piece of code in funds_mgmt.pu:

   except ValueError:
        return JsonResponse({'reason': 'malformed json'}, status=400)

doesn't make sense in this context.

A ValueError can mean *LOTS* of things in Python, there shouldn't be non-local exception handlers for very general exception types like this.

Please catch such exceptions locally, and convert them to more meaningful ones.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-04-11 23:40 Florian Dold New Issue
2016-04-11 23:40 Florian Dold Status new => assigned
2016-04-11 23:40 Florian Dold Assigned To => Marcello Stanisci
2016-04-13 10:59 Marcello Stanisci Summary nonsensical error handling => change error handling tecnique
2016-04-14 00:53 Christian Grothoff Severity minor => tweak
2016-04-14 00:53 Christian Grothoff Product Version => 0.0
2016-04-14 00:53 Christian Grothoff Target Version => 0.1
2016-04-18 10:02 Marcello Stanisci Status assigned => resolved
2016-04-18 10:02 Marcello Stanisci Resolution open => fixed
2016-04-22 19:44 Florian Dold Summary change error handling tecnique => change error handling technique
2016-04-24 23:37 Christian Grothoff Status resolved => closed
2016-04-24 23:37 Christian Grothoff Fixed in Version => 0.0
2016-04-24 23:37 Christian Grothoff Target Version 0.1 => 0.0
2022-08-23 20:26 Christian Grothoff Category bank (demonstrator) => py bank (demonstrator, obsolete)
2023-12-03 01:23 Christian Grothoff Category py bank (demonstrator, obsolete) => obsolete componet
2023-12-11 20:08 Florian Dold Category obsolete componet => obsolete component