halt ytsync when youtube throttles us
This commit is contained in:
parent
a0dcb2216d
commit
b34d328cba
2 changed files with 4 additions and 0 deletions
|
@ -199,6 +199,8 @@ func (s *SyncManager) Start() error {
|
|||
"failure uploading wallet",
|
||||
"the channel in the wallet is different than the channel in the database",
|
||||
"this channel does not belong to this wallet!",
|
||||
"Invalid status code: 429",
|
||||
"HTTP Error 429",
|
||||
}
|
||||
if util.SubstringInSlice(err.Error(), fatalErrors) {
|
||||
return errors.Prefix("@Nikooo777 this requires manual intervention! Exiting...", err)
|
||||
|
|
|
@ -656,6 +656,8 @@ func (s *Sync) startWorker(workerNum int) {
|
|||
"Cannot publish using channel",
|
||||
"cannot concatenate 'str' and 'NoneType' objects",
|
||||
"more than 90% of the space has been used.",
|
||||
"Invalid status code: 429",
|
||||
"HTTP Error 429",
|
||||
}
|
||||
if util.SubstringInSlice(err.Error(), fatalErrors) || s.StopOnError {
|
||||
s.grp.Stop()
|
||||
|
|
Loading…
Reference in a new issue