Browse Source

Include sleep duration in ns1 RateLimitException log

pull/81/head
Ross McFarland 9 years ago
parent
commit
06fb578550
No known key found for this signature in database GPG Key ID: 61C10C4FC8FE4A89
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      octodns/provider/ns1.py

+ 3
- 3
octodns/provider/ns1.py View File

@ -177,7 +177,7 @@ class Ns1Provider(BaseProvider):
meth(name, **params)
except RateLimitException as e:
self.log.warn('_apply_Create: rate limit encountered, pausing '
'and trying again')
'for %ds and trying again', e.period)
sleep(e.period)
meth(name, **params)
@ -192,7 +192,7 @@ class Ns1Provider(BaseProvider):
record.update(**params)
except RateLimitException as e:
self.log.warn('_apply_Update: rate limit encountered, pausing '
'and trying again')
'for %ds and trying again', e.period)
sleep(e.period)
record.update(**params)
@ -205,7 +205,7 @@ class Ns1Provider(BaseProvider):
record.delete()
except RateLimitException as e:
self.log.warn('_apply_Delete: rate limit encountered, pausing '
'and trying again')
'for %ds and trying again', e.period)
sleep(e.period)
record.delete()


Loading…
Cancel
Save