thumbnail: Skip avatars whose old versions are missing.

This commit is contained in:
Alex Vandiver 2024-07-11 01:53:12 +00:00 committed by Tim Abbott
parent 4d3d3efcf1
commit a4981c13f7
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ def thumbnail_s3_avatars(users: QuerySet[Any]) -> None:
original_bytes = old_data["Body"].read()
except Exception:
print(f"Failed to fetch {old_base}")
continue
avatar_bucket.Object(new_base + ".original").copy_from(
CopySource=f"{settings.S3_AVATAR_BUCKET}/{old_base}.original",