From 0261dbfbc2ea0a5f1d64c037a2de398155b0c763 Mon Sep 17 00:00:00 2001 From: "J.C. Jones" Date: Tue, 31 May 2022 13:34:49 -0700 Subject: [PATCH] Don't fail completely if we throw on a table. (#56) --- partitionmanager/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/partitionmanager/cli.py b/partitionmanager/cli.py index 2156842..1dd5ef0 100644 --- a/partitionmanager/cli.py +++ b/partitionmanager/cli.py @@ -358,6 +358,8 @@ def do_partition(conf): f"Unable to automatically handle {table}: No empty " "partition is available." ) + except (ValueError, Exception) as e: + log.warning("Failed to handle %s: %s", table, e) if conf.prometheus_stats_path: do_stats(conf, metrics=metrics)