Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cc-a
Copy link
Contributor

@cc-a cc-a commented Oct 14, 2021

This PR works around an issue encountered when settings.DATABASES['default']['NAME'] is a Path object. Without this change this configuration leads to an obscure error when a name is not set explicitly in the Django settings file:

powbal-app-1 | [2021-10-14 11:47:50,395] ERROR:huey.consumer.Worker:Worker-1:Error reading from queue
powbal-app-1 | Traceback (most recent call last):
powbal-app-1 | File "/usr/local/lib/python3.8/site-packages/huey/consumer.py", line 109, in loop
powbal-app-1 | task = self.huey.dequeue()
powbal-app-1 | File "/usr/local/lib/python3.8/site-packages/huey/api.py", line 306, in dequeue
powbal-app-1 | data = self.storage.dequeue()
powbal-app-1 | File "/usr/local/lib/python3.8/site-packages/huey/storage.py", line 735, in dequeue
powbal-app-1 | curs.execute('select id, data from task where queue = ? '
powbal-app-1 | sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.

@coleifer coleifer merged commit 12c650e into coleifer:master Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants