mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 21:34:06 +00:00
always return 0 for updates unless there is an error
This is more in line with previous behavioru than returning a status code when no updates are available.
This commit is contained in:
@@ -154,8 +154,6 @@ class UpdateReplication:
|
||||
LOG.warning("No new changes. Sleeping for %d sec.", recheck_interval)
|
||||
time.sleep(recheck_interval)
|
||||
|
||||
return state.value
|
||||
|
||||
|
||||
@staticmethod
|
||||
def run(args):
|
||||
@@ -167,4 +165,5 @@ class UpdateReplication:
|
||||
if args.check_for_updates:
|
||||
return UpdateReplication._check_for_updates(args)
|
||||
|
||||
return UpdateReplication._update(args)
|
||||
UpdateReplication._update(args)
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user