Closed gamemaniaz closed 1 year ago
I've done some explorations. I think while adding that feature, I was expecting download_url
to have the same pattern as the ones the library downloads from Mongo servers.
However, I can see that this was a half baked idea. I will need to refactor the download module, which is overdue anyway.
What this means though, this fix will take longer than my original expectation.
Hi @gamemaniaz, I just merged a change that should address this. I'll cut a release later today and hopefully it'll fix your problem. If not feel free to re-open this issue.
Thank you, it works fine now!
Describe the bug If download_url is used instead of derived urls, the following error occurs at
line 185
of the following file. https://github.com/kaizendorks/pymongo_inmemory/blob/4f6cdba26253c75690c837025edddfb219a4266a/pymongo_inmemory/downloader/__init__.py#L185Since download_url returns a single value, it runs into:
ValueError: too many values to unpack (expected 2)
To Reproduce Steps to reproduce the behavior:
Expected behavior For users using download_url, there should be no fallback function, and no variable unpacking is required.
Context: