You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There may be something wrong with MontyClient() called without any argument, as it fails when a .monty.storage file already exists.
Take such a file:
importmontydbmontydb.MontyClient()
Run it twice and you should get this:
$ python issue.py
$ # no error yet
$ python issue.py
Traceback (most recent call last):
File "issue.py", line 3, in <module>
montydb.MontyClient()
File ".venv/lib/python3.9/site-packages/montydb/client.py", line 50, in __init__
self.__options = ClientOptions(options, wconcern)
File ".venv/lib/python3.9/site-packages/montydb/base.py", line 205, in __init__
self.__codec_options = bson.parse_codec_options(options)
TypeError: 'NoneType' object is not callable
If this is "normal", maybe an explicit error would make sense here. :)
For the context, Mongo-Thingy is an ODM that supports Monty as a backend. One of our users tried to use Monty and got stuck with this issue: Refty/mongo-thingy#48
The text was updated successfully, but these errors were encountered:
Yes, that indeed is a bug. I've added a test case for it and should be fixed now.
Could you have a test with the current master branch and confirm the issue has been resolved?
Hey @davidlatwe, thanks for the great library!
There may be something wrong with
MontyClient()
called without any argument, as it fails when a.monty.storage
file already exists.Take such a file:
Run it twice and you should get this:
If this is "normal", maybe an explicit error would make sense here. :)
For the context, Mongo-Thingy is an ODM that supports Monty as a backend. One of our users tried to use Monty and got stuck with this issue: Refty/mongo-thingy#48
The text was updated successfully, but these errors were encountered: