I can't help but think I'm missing something obvious, but I can't for the life of me get reserve_job working. Using the basic code below to reserve a job ID I know exists and is available in the watched tube:
import greenstalk
client = greenstalk.Client(('192.168.1.2', 11300), watch='testtube')
client.reserve_job(1)
I get a BadFormatError which the documentation suggests shouldn't be hit unless something is amiss in the library.
Traceback (most recent call last):
File "/Users/ropetin/greenstalk/./testgreen.py", line 3, in <module>
client.reserve_job(1)
File "/Users/ropetin/.local/share/virtualenvs/greenstalk-evfV_dNi/lib/python3.9/site-packages/greenstalk.py", line 261, in reserve_job
return self._job_cmd(b'reserve-job %d' % id, b'RESERVED')
File "/Users/ropetin/.local/share/virtualenvs/greenstalk-evfV_dNi/lib/python3.9/site-packages/greenstalk.py", line 187, in _job_cmd
id, size = (int(n) for n in self._send_cmd(cmd, expected))
File "/Users/ropetin/.local/share/virtualenvs/greenstalk-evfV_dNi/lib/python3.9/site-packages/greenstalk.py", line 176, in _send_cmd
return _parse_response(line, expected)
File "/Users/ropetin/.local/share/virtualenvs/greenstalk-evfV_dNi/lib/python3.9/site-packages/greenstalk.py", line 411, in _parse_response
raise ERROR_RESPONSES[status](values)
greenstalk.BadFormatError: []