Skip to content

Commit 3decd93

Browse files
try/except in import_client
1 parent d9d28ea commit 3decd93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ydb/import_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ class ImportProgress(enum.IntEnum):
2929
DONE = 4
3030
CANCELLATION = 5
3131
CANCELLED = 6
32-
CREATE_CHANGEFEEDS = 7
3332

3433

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

3941

4042
_initialize_progresses()

0 commit comments

Comments
 (0)