Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove bug will raise JSONDecodeError #230

Open
Ximinhan opened this issue Jun 15, 2022 · 0 comments
Open

remove bug will raise JSONDecodeError #230

Ximinhan opened this issue Jun 15, 2022 · 0 comments

Comments

@Ximinhan
Copy link
Contributor

Ximinhan commented Jun 15, 2022

when I try to remove a bug with errata_tool it will raise an error,it can be reproduced, but the bug was actually remove

>>> e=Erratum(errata_id=96478)
>>> e.errata_bugs
[2094745]
>>> e.removeBugs([2094745])
>>> e.commit()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ximhan/.local/lib/python3.6/site-packages/errata_tool/erratum.py", line 940, in commit
    self._write()
  File "/home/ximhan/.local/lib/python3.6/site-packages/errata_tool/erratum.py", line 901, in _write
    self._processResponse(r)
  File "/home/ximhan/.local/lib/python3.6/site-packages/errata_tool/connector.py", line 247, in _processResponse
    json = r.json()
  File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 900, in json
    return complexjson.loads(self.text, **kwargs)
  File "/home/ximhan/.local/lib/python3.6/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/home/ximhan/.local/lib/python3.6/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/home/ximhan/.local/lib/python3.6/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 11 column 1 (char 10)
>>>  
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

No branches or pull requests

1 participant