Skip to content

Commit 3993aea

Browse files
committed
Fix import client init
1 parent ce76d06 commit 3993aea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ydb/import_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ class ImportProgress(enum.IntEnum):
3333

3434
def _initialize_progresses():
3535
for key, value in ydb_import_pb2.ImportProgress.Progress.items():
36-
_progresses[value] = getattr(ImportProgress, key[len("PROGRESS_") :])
36+
try:
37+
_progresses[value] = getattr(ImportProgress, key[len("PROGRESS_") :])
38+
except Exception:
39+
pass
3740

3841

3942
_initialize_progresses()

0 commit comments

Comments
 (0)