Re: Trapping underlying exceptions

2018-01-05 Thread Matemática A3K
On Fri, Jan 5, 2018 at 1:45 PM, Stephan Doliov wrote: > Hi, > I am diving ever deeper into Django and I came upon some behavior that > frustrated me but perhaps I am just misunderstanding what should happen and > why. > > In writing unit tests for code, I wanted to write one that traps a > json.d

Trapping underlying exceptions

2018-01-05 Thread Stephan Doliov
Hi, I am diving ever deeper into Django and I came upon some behavior that frustrated me but perhaps I am just misunderstanding what should happen and why. In writing unit tests for code, I wanted to write one that traps a json.decoder.JSONDecodeError by passing in some malformed JSON. What ap