Wait a second before retrying

This commit is contained in:
Dan 2017-12-22 09:27:47 +01:00
parent e8f04793ea
commit ef7ee13a56

View file

@ -244,6 +244,7 @@ class Auth:
)
except Exception as e: # TODO: Too broad exception clause
log.warning("Auth key creation failed. Let's try again: {}".format(repr(e)))
time.sleep(1)
continue
else:
return auth_key