Handle missing author names

For some reason, some older Skyrim mods have an author link but no author text. In that case, default the name to "Unknown".
This commit is contained in:
Tyler Hallada 2022-09-17 12:25:59 -04:00
parent afefc8fef3
commit f2a4205b89

View File

@ -129,7 +129,7 @@ impl ModListResponse {
let author_name = author_elem
.text()
.next()
.expect("Missing author text for mod");
.unwrap_or("Unknown");
let desc_elem = right
.select(&desc_select)
.next()