mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
make sure this variable is actually defined
This commit is contained in:
parent
55331083b3
commit
a0d17151fe
@ -220,10 +220,10 @@ class ServiceRegistry(object):
|
||||
the unique service, if there is one and it is healthy, otherwise
|
||||
None
|
||||
'''
|
||||
# use the same concept of 'now' for all queries
|
||||
now = self.rr.now().run()
|
||||
if candidate is not None:
|
||||
candidate['id'] = role
|
||||
# use the same concept of 'now' for all queries
|
||||
now = rr.now().run()
|
||||
|
||||
if not 'heartbeat_interval' in candidate:
|
||||
raise Exception(
|
||||
|
Loading…
x
Reference in New Issue
Block a user