diff --git a/tools/datafix/reimport_gcs_record.py b/tools/datafix/reimport_gcs_record.py index a90380dad65..4ce7233dbc5 100755 --- a/tools/datafix/reimport_gcs_record.py +++ b/tools/datafix/reimport_gcs_record.py @@ -171,7 +171,12 @@ def main() -> None: try: with ds_client.transaction() as xact: for bug in result_to_fix: - bug_in_gcs = objname_for_bug(ds_client, bug) + try: + bug_in_gcs = objname_for_bug(ds_client, bug) + except UnexpectedSituation as e: + if args.verbose: + print(f"Skipping {bug['db_id']}, got {e}\n") + continue if args.verbose: print(f"Resetting creation time for {bug_in_gcs['uri']}") if not args.dryrun: