Skip to content

Commit c16a3e6

Browse files
committed
vix validation exception check
1 parent 87ee601 commit c16a3e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyiceberg/table/update/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def validation_history(
6565
]
6666
)
6767

68-
if last_snapshot is None or last_snapshot.snapshot_id == from_snapshot.snapshot_id:
68+
if last_snapshot is not None and last_snapshot.snapshot_id != from_snapshot.snapshot_id:
6969
raise ValidationException("No matching snapshot found.")
7070

7171
return manifests_files, snapshots

0 commit comments

Comments
 (0)