keethesh / UdemyCourseGrabber

Your will to enroll in Udemy course is here, but the money isn't? Search no more! This python program searches for your desired course in more than [insert big number here] websites, compares the last updated date, and gives you the download link of the latest one back, but you also have the choice to see the other ones as well!
MIT License
181 stars 30 forks source link

handle for download_link being NoneType #11

Closed HomunculusK closed 4 years ago

HomunculusK commented 4 years ago

File "main.py", line 97, in interactive() File "main.py", line 63, in interactive course_info = get_sites(course_name) File "C:\Users****\UdemyCourseGrabber\functions.py", line 73, in get_sites if "magnet" in download_link: TypeError: argument of type 'NoneType' is not iterable

tried replacing

if len(download_link) == 0: continue with if len(download_link) == 0 or download_link is None: continue

put that just makes 100 more exceptions I'm too lazy to follow through to replicate search for "Python for Finance: Investment Fundamentals & Data Analytics"

keethesh commented 4 years ago

Fixed!