Skip to content

Commit be046e1

Browse files
authored
Merge pull request #561 from ydb-platform/fix_import_client_init
Fix import client init
2 parents ce76d06 + 3993aea commit be046e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ydb/import_client.py

+4-1
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)