summaryrefslogtreecommitdiff
path: root/crawler/sanitize.go
diff options
context:
space:
mode:
authorhorus2018-02-19 22:54:08 +0100
committerhorus2018-02-19 22:54:08 +0100
commitee92a7e43df5a7272842b1434d20713dcfd06387 (patch)
tree8f48d2017031f0572aec0a2b32a48bcac0fa778d /crawler/sanitize.go
parent13b1e31cb91f5af98951f4353d49429f356d7f12 (diff)
downloadalkobote-ee92a7e43df5a7272842b1434d20713dcfd06387.tar.gz
Less Fatal(), more Warn(). (crawler)
Diffstat (limited to 'crawler/sanitize.go')
-rw-r--r--crawler/sanitize.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawler/sanitize.go b/crawler/sanitize.go
index 346100a..27921d5 100644
--- a/crawler/sanitize.go
+++ b/crawler/sanitize.go
@@ -242,7 +242,8 @@ func get_age_from_name(name string) int {
age, err := strconv.Atoi(age_noisy)
if err != nil {
- Fatal(err, "get_age_from_name: String to int (atoi) failed")
+ Warn(err, "get_age_from_name: String to int (atoi) failed")
+ return 0
}
return age
}