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

[fix] 适配不需要选择观演人的场次 #18

Closed
ronething opened this issue May 1, 2022 · 2 comments · Fixed by #19
Closed

[fix] 适配不需要选择观演人的场次 #18

ronething opened this issue May 1, 2022 · 2 comments · Fixed by #19

Comments

@ronething
Copy link
Contributor

dm_viewer_pc = str([k for k, v in submit_order_info.get('data').items()])
dm_viewer_pc_id = re.search('dmViewerPC_[0-9]*', dm_viewer_pc).group()

如果是不需要选择观演人的场次,会有异常发生

类似 'Nonetype' object has no attribute 'group' 之类

这里应该需要先判断 re.search('dmViewerPC_[0-9]*', dm_viewer_pc) 是否为 None,有时间我修复一下提个 pr

@MakiNaruto
Copy link
Owner

如果是不需要选择观演人的场次,会有异常发生

这个情况没注意到,等你补丁奥~

@ronething
Copy link
Contributor 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

Successfully merging a pull request may close this issue.

2 participants