Search 周杰伦 in <fuo_xiami.provider.XiamiProvider object at 0x110e5b860> failed.
Traceback (most recent call last):
File "/Users/hejl/JianGuo/FeelUOwn/fuocore/library.py", line 134, in search
result = provider.search(keyword=keyword, type_=type_, **kwargs)
File "/Users/hejl/JianGuo/FeelUOwn/.venv/lib/python3.7/site-packages/fuo_xiami/models.py", line 333, in search
data = provider.api.search(keyword, type_=type_type_map[type_])
File "/Users/hejl/JianGuo/FeelUOwn/.venv/lib/python3.7/site-packages/fuo_xiami/api.py", line 168, in search
_, _, rv = self.request(action, payload)
File "/Users/hejl/JianGuo/FeelUOwn/.venv/lib/python3.7/site-packages/fuo_xiami/api.py", line 105, in request
rv = response.json()
File "/Users/hejl/JianGuo/FeelUOwn/.venv/lib/python3.7/site-packages/fuo_xiami/api.py", line 105, in request
rv = response.json()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/bdb.py", line 88, in trace_dispatch
return self.dispatch_line(frame)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/bdb.py", line 113, in dispatch_line
if self.quitting: raise BdbQuit
bdb.BdbQuit
Describe the bug 未登录搜索时报错,如果没报错,多搜索一下就报错
To Reproduce 输入
fuo search 周杰伦
错误信息:
debug后的返回:
可能捕捉异常,提醒用户先登录再搜索能解决该问题