Groove icon indicating copy to clipboard operation
Groove copied to clipboard

Program won't start if having logged in previously.

Open shawnLeeZX opened this issue 11 years ago • 0 comments

Hi vstorm:

First, thank you for sharing this script for letting people outside mainland use douban fm!

I just met a problem that as long as I had logged in, and tried to open the program again, it won't start. As long as I deleted the cookie.txt, everything was fine. The error trace is:

Traceback (most recent call last):
  File "main.py", line 280, in <module>
    main()
  File "main.py", line 274, in main
    widget = Widget()
  File "main.py", line 15, in __init__
    self.initUi()
  File "main.py", line 32, in initUi
    collectChannel=self.getcollect()
  File "main.py", line 70, in getcollect
    r = urllib.request.urlopen(indexurl)
  File "/usr/lib/python3.4/urllib/request.py", line 153, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 461, in open
    response = meth(req, response)
  File "/usr/lib/python3.4/urllib/request.py", line 571, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.4/urllib/request.py", line 493, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 676, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 461, in open
    response = meth(req, response)
  File "/usr/lib/python3.4/urllib/request.py", line 571, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.4/urllib/request.py", line 499, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 579, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

Would you consider fixing it?

shawnLeeZX avatar Sep 23 '15 01:09 shawnLeeZX