当前位置:   article > 正文

AttributeError: ‘NoneType‘ object has no attribute ‘a‘一运行就报这个错误_nonetype' object has no attribute 'a

nonetype' object has no attribute 'a

不知道为什么一运行就开始报这个错误 

Traceback (most recent call last):
  File "D:/Study/HackerC/hacker.py", line 397, in <module>
    main()
  File "D:/Study/HackerC/hacker.py", line 394, in main
    py_leaderboard(tab, re_tab, i)
  File "D:/Study/HackerC/hacker.py", line 354, in py_leaderboard
    page = get_maxpage(tab, title_id)
  File "D:/Study/HackerC/hacker.py", line 295, in get_maxpage
    return  int(targets.a['data-attr8'])+1
AttributeError: 'NoneType' object has no attribute 'a'

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Li_阴宅/article/detail/898993
推荐阅读
相关标签
  

闽ICP备14008679号