]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/clicmd/replication.py
always return 0 for updates unless there is an error
[nominatim.git] / nominatim / clicmd / replication.py
index 4852c8b1390a45382c70fe79645037f707dbb523..2a19e6cdad8c74c594be404bb9507c119187eaaa 100644 (file)
@@ -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