- ignore 833 err for mtwm.RetailCatUpdate
This commit is contained in:
@@ -33,6 +33,13 @@ func (a *API) RetailCatUpdate(poiCode, originName, name, secondaryName string, s
|
||||
params["secondary_category_name"] = secondaryName
|
||||
}
|
||||
_, err = a.AccessAPI("retailCat/update", false, params)
|
||||
if err != nil {
|
||||
if err2, ok := err.(*utils.ErrorWithCode); ok {
|
||||
if err2.IntCode() == 833 {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user