lmacken / liveusb-creator

A cross-platform tool for easily installing Fedora on to USB flash drives and SD cards.
http://fedorahosted.org/liveusb-creator
GNU General Public License v2.0
140 stars 47 forks source link

NoneType exception in releases.py function getSHA(url) Line 39 #55

Open poeschlr opened 7 years ago

poeschlr commented 7 years ago

The problematic line contains the following: if "CHECKSUM" in i.attr('href'):

This does crash if i.attr('href') is None. In the console one gets the python error message: TypeError: argument of type 'NoneType' is not iterable

To avoid that, one could check if i.attr("href") is None. For me this worked, but i don't know if this would have unintended consequences. (I only used the live creator to write an existing image to an usb drive.)