mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 09:05:30 +00:00
Small changes
This commit is contained in:
@@ -211,7 +211,7 @@ func (p *GNDProvider) fetchPerson(person xmlprovider.Agent) {
|
||||
|
||||
for i := 0; i < 3; i++ {
|
||||
response, err = http.DefaultClient.Do(request)
|
||||
if err == nil && 500 > response.StatusCode {
|
||||
if err == nil && 400 > response.StatusCode {
|
||||
if i > 0 {
|
||||
logging.Info("Successfully fetched person: " + person.ID + " after " + strconv.Itoa(i) + " retries")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user