Crash today in the rss-fetcher. An RSS "link" seems to have had whitespace: ' https://www.letras.com.br/banda-n-drive/eden ' and called mcmetadata.urls.is_homepage_url(link) which it expects to throw only ValueError or TypeError . This is inside a larger try that catches any of AttributeError, KeyError, ValueError, UnicodeError . The crash happened in is_homepage_url at uri_host = uri.host.lower() because uri was None. The questions are:
should rss-fetcher be stripping leading and trailing spaces? Check for AttributeError?
should mcmetadata check for None as uri and raise some other exception?
This isn't pressing, it's the first time I've seen the exception
@rahulbot responded:
I think this is reasonable cleanup for mcmetadata to include.
Crash today in the rss-fetcher. An RSS "link" seems to have had whitespace:
' https://www.letras.com.br/banda-n-drive/eden '
and calledmcmetadata.urls.is_homepage_url(link)
which it expects to throw only ValueError or TypeError . This is inside a larger try that catches any of AttributeError, KeyError, ValueError, UnicodeError . The crash happened inis_homepage_url at uri_host = uri.host.lower()
because uri was None. The questions are:This isn't pressing, it's the first time I've seen the exception
@rahulbot responded: