CC-4910: Need to properly handle non-200 http status codes in api client
-fixed
This commit is contained in:
parent
20a3f674b4
commit
331386f74f
12 changed files with 156 additions and 156 deletions
|
@ -179,7 +179,14 @@ if __name__ == '__main__':
|
|||
|
||||
ReplayGainUpdater.start_reply_gain(api_client)
|
||||
|
||||
api_client.register_component("pypo")
|
||||
success = False
|
||||
while not success:
|
||||
try:
|
||||
api_client.register_component('pypo')
|
||||
success = True
|
||||
except Exception, e:
|
||||
logger.error(str(e))
|
||||
time.sleep(10)
|
||||
|
||||
pypoFetch_q = Queue()
|
||||
recorder_q = Queue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue