benoitc/couchdbkit — pull request #168 by dannyroberts (2013-08-30 19:32:59+00:00)
Title: improve the error message for unknown doc type from view

The traceback now looks something like this

```
...
User.view('users/all', include_docs=True)
File "/Users/droberts/dimagi/commcare-hq/couchdbkit/client.py", line 947, in iterator
yield wrapper(row)
File "/Users/droberts/dimagi/commcare-hq/couchdbkit/client.py", line 919, in row_wrapper
return schema(doc)
File "/Users/droberts/dimagi/commcare-hq/couchdbkit/schema/util.py", line 37, in wrap
"This behavior is new starting in 0.6.2.".format(doc_type)
DocTypeError: the document being wrapped has doc type 'WebUser'. To wrap it anyway, you must explicitly pass in classes={'WebUser': } to your view. This behavior is new starting in 0.6.2.
```