mongokit icon indicating copy to clipboard operation
mongokit copied to clipboard

RuntimeError: maximum recursion depth exceeded while calling a Python object

Open newtechfellas opened this issue 10 years ago • 0 comments

If a model class name and the collection name match, we see below error

...
File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 1729, in wrapper
    rv = callback(*a, **ka)
RuntimeError: maximum recursion depth exceeded while calling a Python object

@connection.register
class Foo(Document):
    __database__ = 'FooDb'
    __collection__ = 'Foo'
   #my document properties go here.

I used PyMongo 2.7.2 and MongoKit 0.9.1.1

newtechfellas avatar Oct 23 '14 20:10 newtechfellas