Skip to content

Commit 0007288

Browse files
stanislav-shchetininStanislav Shchetinin
andauthored
Ignore AttributeError in ydb/import_client.py (#555)
Ignore AttributeError in ydb/import_client.py --------- Co-authored-by: Stanislav Shchetinin <[email protected]>
1 parent 1a7935a commit 0007288

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 AttributeError:
39+
pass
3740

3841

3942
_initialize_progresses()

0 commit comments

Comments
 (0)