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:
parent
afefc8fef3
commit
f2a4205b89
@ -129,7 +129,7 @@ impl ModListResponse {
|
|||||||
let author_name = author_elem
|
let author_name = author_elem
|
||||||
.text()
|
.text()
|
||||||
.next()
|
.next()
|
||||||
.expect("Missing author text for mod");
|
.unwrap_or("Unknown");
|
||||||
let desc_elem = right
|
let desc_elem = right
|
||||||
.select(&desc_select)
|
.select(&desc_select)
|
||||||
.next()
|
.next()
|
||||||
|
Loading…
Reference in New Issue
Block a user