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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user