Maybe it should say something like `expected dict, but got: <type>`, but I'm not sure in what context this Exception would be thrown.