From 3993aeabf4a3725511b813bb4b883295a4a6f21c Mon Sep 17 00:00:00 2001 From: Oleg Ovcharuk Date: Thu, 20 Feb 2025 13:12:46 +0300 Subject: [PATCH] Fix import client init --- ydb/import_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ydb/import_client.py b/ydb/import_client.py index d1ccc99a..61fe6deb 100644 --- a/ydb/import_client.py +++ b/ydb/import_client.py @@ -33,7 +33,10 @@ class ImportProgress(enum.IntEnum): def _initialize_progresses(): for key, value in ydb_import_pb2.ImportProgress.Progress.items(): - _progresses[value] = getattr(ImportProgress, key[len("PROGRESS_") :]) + try: + _progresses[value] = getattr(ImportProgress, key[len("PROGRESS_") :]) + except Exception: + pass _initialize_progresses()