View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004407 | Taler | obsolete component | public | 2016-04-11 20:12 | 2016-04-24 21:45 |
| Reporter | Florian Dold | Assigned To | Marcello Stanisci | Resolution deadline | |
| Implementer | Reviewer | ||||
| Release signed by | Deployed by | ||||
| Verifier | Communicator | ||||
| Data protection authority notification required | No | ||||
| CSIRT notification required | No | ||||
| Estimated effort (hours) | Actual effort (hours) | 0 | |||
| Fast-track | No | ||||
| Work package | none | ||||
| Priority | normal | Severity | major | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Product Version | 0.0 | ||||
| Target Version | 0.0 | Fixed in Version | 0.0 | ||
| Summary | 0004407: bank throws exception classes instead of exception instances in some places | ||||
| Description | This is not how you're supposed to throw exception in Python. Always throw instances: "raise BadWireDetails()" and not "raise BadWireDetails". Also consider adding more information to the exceptions. | ||||
| Additional Information | @staticmethod def validate_wiredetails(wiredetails, schema): try: validictory.validate(wiredetails, schema) except (ValueError, TypeError): raise BadWireDetails return True | ||||
| Tags | No tags attached. | ||||
| Note that exception catching DOES NOT WORK otherwise. | |
| Also in some case we mix exception handling and return values in ... "unconventional" ways: @staticmethod def validate_amount(amount, schema): try: validictory.validate(amount, schema) except (ValueError, TypeError): raise BadAmount() return True Note also that the "schema" parameter here is completely redundant. | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2016-04-11 20:12 | Florian Dold | New Issue | |
| 2016-04-11 20:12 | Florian Dold | Status | new => assigned |
| 2016-04-11 20:12 | Florian Dold | Assigned To | => Marcello Stanisci |
| 2016-04-11 20:13 | Florian Dold | Note Added: 0010457 | |
| 2016-04-13 22:54 | Christian Grothoff | Severity | minor => major |
| 2016-04-13 22:54 | Christian Grothoff | Product Version | => 0.0 |
| 2016-04-13 22:54 | Christian Grothoff | Target Version | => 0.0 |
| 2016-04-14 17:38 | Florian Dold | Note Added: 0010474 | |
| 2016-04-18 08:00 | Marcello Stanisci | Status | assigned => informing |
| 2016-04-18 08:00 | Marcello Stanisci | Resolution | open => fixed |
| 2016-04-24 21:45 | Christian Grothoff | Status | informing => closed |
| 2016-04-24 21:45 | Christian Grothoff | Fixed in Version | => 0.0 |
| 2022-08-23 18:26 | Christian Grothoff | Category | bank (demonstrator) => py bank (demonstrator, obsolete) |
| 2023-12-03 00:23 | Christian Grothoff | Category | py bank (demonstrator, obsolete) => obsolete componet |
| 2023-12-11 19:08 | Florian Dold | Category | obsolete componet => obsolete component |