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

KeyError: 'otc_pid' #3

Open
jiangencheng opened this issue Jan 15, 2020 · 2 comments
Open

KeyError: 'otc_pid' #3

jiangencheng opened this issue Jan 15, 2020 · 2 comments

Comments

@jiangencheng
Copy link

win7 64位系统 安装py 38 执行后提示
File "F:\OneThingCloud_web_server-master\app\decorators.py", line 12, in wrapped_view
my_otc=dict2otc(json.loads(dict_otc))
File "F:\OneThingCloud_web_server-master\app\OneThingCloud_API.py", line 471, in dict2otc
otc_pid=d['otc_pid'],
KeyError: 'otc_pid'
请问这是什么问题

@xxiaocheng
Copy link
Owner

win7 64位系统 安装py 38 执行后提示
File "F:\OneThingCloud_web_server-master\app\decorators.py", line 12, in wrapped_view
my_otc=dict2otc(json.loads(dict_otc))
File "F:\OneThingCloud_web_server-master\app\OneThingCloud_API.py", line 471, in dict2otc
otc_pid=d['otc_pid'],
KeyError: 'otc_pid'
请问这是什么问题

很久没有用过了,你可以参考那个Api使用Vue实现一下,我这个当初想法比较简单,不是很好,sorry。

@jiangencheng
Copy link
Author

谢谢 劳烦您了

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

2 participants