mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Make ethnicity freetext and fix freeones ethnicity panic (#431)
* Make ethnicity free text * Fix panic in freeones scraper for other ethnicity
This commit is contained in:
@@ -278,7 +278,9 @@ func getEthnicity(ethnicity string) string {
|
||||
case "Asian":
|
||||
return "asian"
|
||||
default:
|
||||
panic("unknown ethnicity")
|
||||
// #367 - unknown ethnicity shouldn't cause the entire operation to
|
||||
// fail. Just return the original string instead
|
||||
return ethnicity
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user