Advertisement
Guest User

Untitled

a guest
Aug 14th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.25 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "/home/nicko/devman/10_coursera/coursera.py", line 51, in get_course_info
  3.     {"class": "ratings-text bt3-visible-xs"}
  4. AttributeError: 'NoneType' object has no attribute 'text'
  5.  
  6. During handling of the above exception, another exception occurred:
  7.  
  8. Traceback (most recent call last):
  9.   File "/home/nicko/pycharm-2018/helpers/pydev/pydevd.py", line 1664, in <module>
  10.     main()
  11.   File "/home/nicko/pycharm-2018/helpers/pydev/pydevd.py", line 1658, in main
  12.     globals = debugger.run(setup['file'], None, None, is_module)
  13.   File "/home/nicko/pycharm-2018/helpers/pydev/pydevd.py", line 1068, in run
  14.     pydev_imports.execfile(file, globals, locals)  # execute the script
  15.   File "/home/nicko/pycharm-2018/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
  16.     exec(compile(contents+"\n", file, 'exec'), glob, loc)
  17.   File "/home/nicko/devman/10_coursera/coursera.py", line 78, in <module>
  18.     print(get_course_info("https://www.coursera.org/learn/teach-impacts-technology-relationships"))
  19.   File "/home/nicko/devman/10_coursera/coursera.py", line 56, in get_course_info
  20.     {"class": "ratings-text headline-2-text"}
  21. AttributeError: 'NoneType' object has no attribute 'text'
  22.  
  23. Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement